Merge pull request #6024 from akva2/fix_tracy

fix tracy support
This commit is contained in:
Bård Skaflestad authored and GitHub committed 2025-02-20 15:25:21 +01:00
commit 261f38924f
1 file changed
+7
+7
View File
@@ -545,6 +545,10 @@ if(TARGET fmt::fmt)
target_link_libraries(MainDispatchDynamic fmt::fmt)
endif()
if(USE_TRACY_PROFILER AND Tracy_FOUND)
target_link_libraries(MainDispatchDynamic Tracy::TracyClient)
endif()
# Strictly we only depend on the update-version target,
# but this is not exposed in a super-build.
add_dependencies(moduleVersion opmsimulators)
@@ -568,6 +572,9 @@ foreach(OBJ ${COMMON_MODELS} ${FLOW_MODELS} ${FLOW_VARIANT_MODELS})
if(TARGET opmcommon)
add_dependencies(flow_lib${OBJ} opmcommon)
endif()
if(USE_TRACY_PROFILER AND Tracy_FOUND)
target_link_libraries(flow_lib${OBJ} Tracy::TracyClient)
endif()
opm_add_test(flow_${OBJ}
ONLY_COMPILE
SOURCES