mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 13:51:33 -06:00
CMakeVersion: Add generic '-git' suffix when no git info is available
This commit is contained in:
@@ -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