From feedf765d32d33988804c69c34505a33c7ad3281 Mon Sep 17 00:00:00 2001 From: Theodore Chang Date: Tue, 10 Dec 2024 20:30:59 +0100 Subject: [PATCH] Skip tbb binaries when system libs are used --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f6621498..1a7a0769 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -236,7 +236,7 @@ if (COMPILER_IDENTIFIER MATCHES "(linux|mac)") install(PROGRAMS ${OPENBLAS_FILES} DESTINATION lib) endif () install(PROGRAMS Enhancement/suanPan.sh DESTINATION bin) - if (BUILD_MULTITHREAD) + if (BUILD_MULTITHREAD AND NOT USE_SYS_LIB) file(GLOB TBB_FILES Libs/${SP_EXTERNAL_LIB_PATH}/libtbb*) install(PROGRAMS ${TBB_FILES} DESTINATION lib) endif ()