Commit 0505a66c authored by Brad King's avatar Brad King 💬
Browse files

CMakeVersion: Add generic '-git' suffix when no git info is available

parent f7bf0875
......@@ -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.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment