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 ()