Link MainDispatchDynamic to LibFMT

Some code in implementation depends on the libfmt headers.
This commit is contained in:
Bård Skaflestad committed 2025-02-10 15:07:09 +01:00
1 parent fa67170c85
commit f86383f194
1 file changed
+4
+4
View File
@@ -541,6 +541,10 @@ set_property(TARGET moduleVersion PROPERTY POSITION_INDEPENDENT_CODE ON)
add_library(MainDispatchDynamic OBJECT opm/simulators/flow/MainDispatchDynamic.cpp)
set_property(TARGET MainDispatchDynamic PROPERTY POSITION_INDEPENDENT_CODE ON)
if(TARGET fmt::fmt)
target_link_libraries(MainDispatchDynamic fmt::fmt)
endif()
# Strictly we only depend on the update-version target,
# but this is not exposed in a super-build.
add_dependencies(moduleVersion opmsimulators)