Replies: 2 comments 3 replies
-
Actually I think that paragraph is outdated, as the snippet checks the cache directory as well. I've removed the note from the wiki. Would the script be a better option for you in this case?
There are still quite a bit of use-cases that require offline compatibility, e.g. for security reasons. Note that it would also forbid any users of your project to build offline as well.
The release assets are currently generated automatically whenever there's a new tag. I see how adding the version to master would be nice, however adding the according release version to the main branch would come with a maintenance overhead for each release that I would like to avoid. |
Beta Was this translation helpful? Give feedback.
-
I saw in another discussion that the release version also removes some bloat? Is this really true? I cannot see anything in the pipeline except the version changing? |
Beta Was this translation helpful? Give feedback.
-
According to: https://github.com/cpm-cmake/CPM.cmake/wiki/Downloading-CPM.cmake-in-CMake
Is the reason for this just because the file(DOWNLOAD) is always done? Or needs to be done at least one time for each new build directory?
I currently use CPM via FetchContent, which works fine. For each new build directory internet is needed as well, but this seems okay to me.
The problem is only that I get a warning that I'm not using a release version even though I am. It seems the tagged release version doesn't contain the right version info, but only the released version in the assets.
I think a tagged release version such as https://github.com/cpm-cmake/CPM.cmake/tree/v0.34.3 should also contain the right version. What do you think?
I like to use FetchContent as it allows me to specify any Commit hash, no matter if it's a release or just the current master commit. This makes it very easy to switch between different versions. It's also more consistent with the CPM code compared to the file(DOWNLOAD) approach.
Beta Was this translation helpful? Give feedback.
All reactions