mirror of
https://github.com/Z3Prover/z3
synced 2025-07-18 02:16:40 +00:00
[CMake] Fix detection of git description and hash for CMake 2.8.12
This commit is contained in:
parent
3229bedb36
commit
80c0c4f663
2 changed files with 8 additions and 4 deletions
|
@ -109,7 +109,7 @@ if (EXISTS "${GIT_DIR}")
|
|||
endif()
|
||||
message(STATUS "Using Git hash in version output: ${Z3GITHASH}")
|
||||
# This mimics the behaviour of the old build system.
|
||||
string(APPEND Z3_FULL_VERSION_STR " ${Z3GITHASH}")
|
||||
set(Z3_FULL_VERSION_STR "${Z3_FULL_VERSION_STR} ${Z3GITHASH}")
|
||||
else()
|
||||
message(STATUS "Not using Git hash in version output")
|
||||
unset(Z3GITHASH) # Used in configure_file()
|
||||
|
@ -122,7 +122,7 @@ if (EXISTS "${GIT_DIR}")
|
|||
endif()
|
||||
message(STATUS "Using Git description in version output: ${Z3_GIT_DESCRIPTION}")
|
||||
# This mimics the behaviour of the old build system.
|
||||
string(APPEND Z3_FULL_VERSION_STR " ${Z3_GIT_DESCRIPTION}")
|
||||
set(Z3_FULL_VERSION_STR "${Z3_FULL_VERSION_STR} ${Z3_GIT_DESCRIPTION}")
|
||||
else()
|
||||
message(STATUS "Not including git descrption in version")
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue