mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4266 : libecl : Applied patch to avoid recompile at each commit
This commit is contained in:
parent
6f78404f92
commit
e8c214a7e9
7
ThirdParty/Ert/lib/CMakeLists.txt
vendored
7
ThirdParty/Ert/lib/CMakeLists.txt
vendored
@ -179,6 +179,13 @@ target_include_directories(ecl
|
|||||||
${CMAKE_CURRENT_BINARY_DIR}/include
|
${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
|
target_compile_definitions(ecl PRIVATE
|
||||||
-DGIT_COMMIT=${GIT_COMMIT}
|
-DGIT_COMMIT=${GIT_COMMIT}
|
||||||
-DGIT_COMMIT_SHORT=${GIT_COMMIT_SHORT}
|
-DGIT_COMMIT_SHORT=${GIT_COMMIT_SHORT}
|
||||||
|
Loading…
Reference in New Issue
Block a user