Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix the warning CPM: Your project is using an unstable development version of CPM.cmake. when using FetchContent #655

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

flagarde
Copy link
Contributor

This PR fix the warning

CMake Warning at build/_deps/cpm-src/cmake/CPM.cmake:80 (message):
  CPM: Your project is using an unstable development version of CPM.cmake.
  Please update to a recent release if possible.  See
  https://github.com/cpm-cmake/CPM.cmake for details.
Call Stack (most recent call first):
  build/_deps/cpm-src/CMakeLists.txt:37 (include)

when using FetchContent to download CPM.

describe --tags --long command :
Always output the long format (the tag, the number of commits and the abbreviated commit name) even when it matches a tag. This is useful when you want to see parts of the commit object name in "describe" output, even when the commit in question happens to be a tagged version. Instead of just emitting the tag name, it will describe such a commit as v1.2-0-gdeadbee (0th commit since tag v1.2 that points at object deadbee…​.).

so if the HEAD is exactly at some tags matching v*..-0-* then Head is on a release and so not a development.

@flagarde flagarde changed the title fix fix the warning CPM: Your project is using an unstable development version of CPM.cmake. when using FetchContent Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant