Merge pull request #5973 from bska/fix-main-dispatch-link

Link MainDispatchDynamic to LibFMT
This commit is contained in:
Bård Skaflestad 2025-02-10 16:39:34 +01:00 committed by GitHub
commit 710e3bb7ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -541,6 +541,10 @@ set_property(TARGET moduleVersion PROPERTY POSITION_INDEPENDENT_CODE ON)
add_library(MainDispatchDynamic OBJECT opm/simulators/flow/MainDispatchDynamic.cpp) add_library(MainDispatchDynamic OBJECT opm/simulators/flow/MainDispatchDynamic.cpp)
set_property(TARGET MainDispatchDynamic PROPERTY POSITION_INDEPENDENT_CODE ON) 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, # Strictly we only depend on the update-version target,
# but this is not exposed in a super-build. # but this is not exposed in a super-build.
add_dependencies(moduleVersion opmsimulators) add_dependencies(moduleVersion opmsimulators)