We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b34e3a6 commit d3aba60Copy full SHA for d3aba60
cmake/helpers.cmake
@@ -13,7 +13,7 @@ function(determine_version_with_git)
13
git_describe(VERSION ${ARGN})
14
string(FIND ${VERSION} "." VALID_VERSION)
15
if(VALID_VERSION EQUAL -1)
16
- if(PROJECT_IS_TOP_LEVEL)
+ if(CMAKE_CURRENT_LIST_DIR STREQUAL PROJECT_SOURCE_DIR)
17
# only warn if this is the top-level project, since we may be
18
# building from a tarball as a subproject
19
message(WARNING "Version string ${VERSION} retrieved with git describe is invalid")
0 commit comments