mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 09:32:46 +00:00
cmake - don't fail silently with ADD_COMMIT_SHA and missing git
This commit is contained in:
@@ -1305,6 +1305,10 @@ endif(BUILD_GEOMSERVER)
|
|||||||
if(ADD_COMMIT_SHA)
|
if(ADD_COMMIT_SHA)
|
||||||
find_package(Git)
|
find_package(Git)
|
||||||
|
|
||||||
|
if(NOT GIT_FOUND)
|
||||||
|
message(FATAL_ERROR "Failed to find Git for ADD_COMMIT_SHA option.")
|
||||||
|
endif()
|
||||||
|
|
||||||
if(GIT_FOUND)
|
if(GIT_FOUND)
|
||||||
if (VERSION_OVERRIDE)
|
if (VERSION_OVERRIDE)
|
||||||
set (git_branch ${RELEASE_VERSION})
|
set (git_branch ${RELEASE_VERSION})
|
||||||
|
|||||||
Reference in New Issue
Block a user