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) target_link_libraries(MainDispatchDynamic fmt::fmt)
endif() endif()
if(USE_TRACY_PROFILER AND Tracy_FOUND)
target_link_libraries(MainDispatchDynamic Tracy::TracyClient)
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)
@@ -568,6 +572,9 @@ foreach(OBJ ${COMMON_MODELS} ${FLOW_MODELS} ${FLOW_VARIANT_MODELS})
if(TARGET opmcommon) if(TARGET opmcommon)
add_dependencies(flow_lib${OBJ} opmcommon) add_dependencies(flow_lib${OBJ} opmcommon)
endif() endif()
if(USE_TRACY_PROFILER AND Tracy_FOUND)
target_link_libraries(flow_lib${OBJ} Tracy::TracyClient)
endif()
opm_add_test(flow_${OBJ} opm_add_test(flow_${OBJ}
ONLY_COMPILE ONLY_COMPILE
SOURCES SOURCES