mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-24 22:06:25 -06:00
Enable usage of fmtlib on the system.
If fmtlib is present on the system we used that one in the normal mode (not header only). Otherwise we fallback to the embedded one header only. Searching for the library is done on opm-common.
This commit is contained in:
parent
a05bb1a0b9
commit
6766f2f81e
@ -161,8 +161,10 @@ macro (config_hook)
|
||||
endif()
|
||||
opm_need_version_of ("opm-models")
|
||||
|
||||
add_definitions(-DFMT_HEADER_ONLY)
|
||||
list(APPEND EXTRA_INCLUDES SYSTEM ${PROJECT_SOURCE_DIR}/external/fmtlib/include)
|
||||
if(NOT fmt_FOUND)
|
||||
add_definitions(-DFMT_HEADER_ONLY)
|
||||
list(APPEND EXTRA_INCLUDES SYSTEM ${PROJECT_SOURCE_DIR}/external/fmtlib/include)
|
||||
endif()
|
||||
include_directories(${EXTRA_INCLUDES})
|
||||
endmacro (config_hook)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user