mirror of
https://github.com/Z3Prover/z3
synced 2025-04-06 01:24:08 +00:00
fix git dir for git-dependency in cmake (#4759)
This is not fixed as #1993 stated. Co-authored-by: Ding Fei <fei.ding@ustchcs.com>
This commit is contained in:
parent
c40a67da7d
commit
da0e140e1c
|
@ -72,7 +72,7 @@ set(GIT_DIR "${PROJECT_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("${PROJECT_SOURCE_DIR}" ADD_GIT_DEP_SUCCESS)
|
add_git_dir_dependency("${GIT_DIR}" ADD_GIT_DEP_SUCCESS)
|
||||||
if (ADD_GIT_DEP_SUCCESS)
|
if (ADD_GIT_DEP_SUCCESS)
|
||||||
if (Z3_INCLUDE_GIT_HASH)
|
if (Z3_INCLUDE_GIT_HASH)
|
||||||
get_git_head_hash("${GIT_DIR}" Z3GITHASH)
|
get_git_head_hash("${GIT_DIR}" Z3GITHASH)
|
||||||
|
|
Loading…
Reference in a new issue