mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3982 System : Avoid recompile of libecl at every commit
set git info to zero
This commit is contained in:
parent
fca21efe05
commit
a03e92c7b3
10
ThirdParty/Ert/lib/CMakeLists.txt
vendored
10
ThirdParty/Ert/lib/CMakeLists.txt
vendored
@ -183,7 +183,14 @@ target_include_directories(ecl
|
||||
${CMAKE_CURRENT_BINARY_DIR}/include
|
||||
)
|
||||
|
||||
if (INSTALL_ERT)
|
||||
|
||||
if (NOT INSTALL_ERT)
|
||||
set(GIT_COMMIT 0)
|
||||
set(GIT_COMMIT_SHORT 0)
|
||||
endif()
|
||||
|
||||
message("GIT_COMMIT_SHORT ${GIT_COMMIT_SHORT}")
|
||||
|
||||
target_compile_definitions(ecl PRIVATE
|
||||
-DGIT_COMMIT=${GIT_COMMIT}
|
||||
-DGIT_COMMIT_SHORT=${GIT_COMMIT_SHORT}
|
||||
@ -192,7 +199,6 @@ target_compile_definitions(ecl PRIVATE
|
||||
-DECL_VERSION_MICRO=${ECL_VERSION_MICRO}
|
||||
$<$<BOOL:${BIG_ENDIAN}>:HOST_BIG_ENDIAN>
|
||||
)
|
||||
endif()
|
||||
|
||||
target_compile_options(ecl PUBLIC ${pthreadarg})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user