diff --git a/src/c/test/CMakeLists.txt b/src/c/test/CMakeLists.txt index cb1e32e1..814b4b5d 100644 --- a/src/c/test/CMakeLists.txt +++ b/src/c/test/CMakeLists.txt @@ -20,7 +20,7 @@ if(PERFFLOWASPECT_WITH_MULTITHREADS) add_executable(smoketest_MT smoketest_MT.cpp) set_source_files_properties(${TEST}.cpp COMPILE_FLAGS "-Xclang -load -Xclang ../weaver/weave/libWeavePass.so -fPIC") set(THREADS_PREFER_PTHREAD_FLAG ON) - target_link_libraries(smoketest_MT pthread) + target_link_libraries(smoketest_MT ${perfflow_deps} pthread) endif() if(PERFFLOWASPECT_WITH_MPI)