#4266 : libecl : Applied patch to avoid recompile at each commit

This commit is contained in:
Magne Sjaastad 2019-05-09 09:26:31 +02:00
parent 6f78404f92
commit e8c214a7e9

View File

@ -179,6 +179,13 @@ target_include_directories(ecl
${CMAKE_CURRENT_BINARY_DIR}/include
)
if (NOT INSTALL_ERT)
# set git info to zero, to avoid recompile of libecl files at every commit
set(GIT_COMMIT 0)
set(GIT_COMMIT_SHORT 0)
endif()
target_compile_definitions(ecl PRIVATE
-DGIT_COMMIT=${GIT_COMMIT}
-DGIT_COMMIT_SHORT=${GIT_COMMIT_SHORT}