#3982 System : Avoid recompile of libecl at every commit

This commit is contained in:
Magne Sjaastad 2019-01-21 21:37:22 +01:00
parent 9850e75048
commit fca21efe05

View File

@ -183,6 +183,7 @@ target_include_directories(ecl
${CMAKE_CURRENT_BINARY_DIR}/include
)
if (INSTALL_ERT)
target_compile_definitions(ecl PRIVATE
-DGIT_COMMIT=${GIT_COMMIT}
-DGIT_COMMIT_SHORT=${GIT_COMMIT_SHORT}
@ -191,6 +192,7 @@ target_compile_definitions(ecl PRIVATE
-DECL_VERSION_MICRO=${ECL_VERSION_MICRO}
$<$<BOOL:${BIG_ENDIAN}>:HOST_BIG_ENDIAN>
)
endif()
target_compile_options(ecl PUBLIC ${pthreadarg})