diff --git a/userspace/libsinsp/CMakeLists.txt b/userspace/libsinsp/CMakeLists.txt index a54d9d47f0..bed65c6e02 100644 --- a/userspace/libsinsp/CMakeLists.txt +++ b/userspace/libsinsp/CMakeLists.txt @@ -164,11 +164,7 @@ target_link_libraries( ) if(NOT EMSCRIPTEN) - target_link_libraries( - sinsp - INTERFACE "${CARES_LIB}" - PRIVATE "${TBB_LIB} ${TBB_MEMPROXY_LIB}" - ) + target_link_libraries(sinsp INTERFACE "${CARES_LIB}" "${TBB_LIB}" "${TBB_MEMPROXY_LIB}") endif() if(USE_BUNDLED_VALIJSON) diff --git a/userspace/libsinsp/test/CMakeLists.txt b/userspace/libsinsp/test/CMakeLists.txt index fd7a521227..66a8af342f 100644 --- a/userspace/libsinsp/test/CMakeLists.txt +++ b/userspace/libsinsp/test/CMakeLists.txt @@ -14,9 +14,6 @@ # include(jsoncpp) -if(NOT EMSCRIPTEN) - include(tbb) -endif() if(WIN32) set(CMAKE_CXX_FLAGS @@ -189,9 +186,7 @@ target_include_directories( ${CMAKE_CURRENT_SOURCE_DIR} ) -target_link_libraries( - unit-test-libsinsp sinsp "${GTEST_LIB}" "${GTEST_MAIN_LIB}" "${TBB_LIB}" "${JSONCPP_LIB}" -) +target_link_libraries(unit-test-libsinsp sinsp "${GTEST_LIB}" "${GTEST_MAIN_LIB}" "${JSONCPP_LIB}") # Add some additional include directories associated with `ADDITIONAL_SINSP_TESTS_SUITE` # `ADDITIONAL_SINSP_TESTS_INCLUDE_FOLDERS` is a list of include paths `;` separated