mirror of
https://github.com/Z3Prover/z3
synced 2025-04-07 09:55:19 +00:00
Fixes the git submodule error discussed in https://github.com/Z3Prover/z3/pull/1552
This commit is contained in:
parent
b1ab473035
commit
a8f26ae1d8
|
@ -99,7 +99,7 @@ set(GIT_DIR "${CMAKE_SOURCE_DIR}/.git")
|
||||||
if (EXISTS "${GIT_DIR}")
|
if (EXISTS "${GIT_DIR}")
|
||||||
# Try to make CMake configure depend on the current git HEAD so that
|
# Try to make CMake configure depend on the current git HEAD so that
|
||||||
# a re-configure is triggered when the HEAD changes.
|
# a re-configure is triggered when the HEAD changes.
|
||||||
add_git_dir_dependency("${GIT_DIR}" ADD_GIT_DEP_SUCCESS)
|
add_git_dir_dependency("${CMAKE_SOURCE_DIR}" ADD_GIT_DEP_SUCCESS)
|
||||||
if (ADD_GIT_DEP_SUCCESS)
|
if (ADD_GIT_DEP_SUCCESS)
|
||||||
if (INCLUDE_GIT_HASH)
|
if (INCLUDE_GIT_HASH)
|
||||||
get_git_head_hash("${GIT_DIR}" Z3GITHASH)
|
get_git_head_hash("${GIT_DIR}" Z3GITHASH)
|
||||||
|
|
Loading…
Reference in a new issue