mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-29 04:09:35 +03:00
CMakeVersion: Add generic '-git' suffix when no git info is available
This commit is contained in:
1 parent
f7bf08754b
commit
0505a66cbf
1 file changed
+6
@@ -60,6 +60,12 @@ if(git_info MATCHES "^([0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]?[0-9a-f]
|
||||
set(CMake_VERSION_IS_DIRTY 1)
|
||||
endif()
|
||||
endif()
|
||||
else()
|
||||
# No commit information.
|
||||
if(NOT CMake_VERSION_IS_RELEASE)
|
||||
# Generic development version.
|
||||
set(CMake_VERSION "${CMake_VERSION}-git")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Extract the version suffix component.
|
||||
|
||||
Reference in new issue
Block a user