mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
#4266 : libecl : Applied patch to avoid recompile at each commit
This commit is contained in:
Vendored
+7
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user