Skip to content

Commit

Permalink
build: use shared tbb only for Win
Browse files Browse the repository at this point in the history
  • Loading branch information
variar committed Apr 18, 2022
1 parent 96d8b6a commit c5efb31
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion 3rdparty/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,16 @@ if (efsw_ADDED)
target_compile_definitions(efsw PRIVATE EFSW_FSEVENTS_NOT_SUPPORTED)
endif()

if(WIN32)
SET(BUILD_SHARED_LIBS ON)
endif()
CPMAddPackage(NAME tbb GITHUB_REPOSITORY oneapi-src/oneTBB VERSION 2021.5.0 EXCLUDE_FROM_ALL YES
OPTIONS "TBB_TEST=OFF" "TBB_EXAMPLES=OFF" "TBB_STRICT=OFF" "BUILD_SHARED_LIBS=ON"
OPTIONS "TBB_TEST=OFF" "TBB_EXAMPLES=OFF" "TBB_STRICT=OFF"
)
if(WIN32)
SET(BUILD_SHARED_LIBS OFF)
endif()

if (tbb_ADDED)
add_library(tbbmalloc_proxy_wrapper ALIAS tbbmalloc_proxy)
else()
Expand Down

0 comments on commit c5efb31

Please sign in to comment.