Skip to content

Commit 7a300de

Browse files
committed
Changing TBB from static to shared
1 parent ccb4741 commit 7a300de

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,13 +154,13 @@ endif()
154154
# TODO This should actually be a submodule of pagmo.
155155
# The only reason to have it here is to avoid forking pagmo as well.
156156
set(TBB_BUILD_TESTS OFF CACHE BOOL "" FORCE)
157-
set(TBB_BUILD_SHARED OFF CACHE BOOL "" FORCE)
158-
set(TBB_BUILD_STATIC ON CACHE BOOL "" FORCE)
157+
set(TBB_BUILD_SHARED ON CACHE BOOL "" FORCE)
158+
set(TBB_BUILD_STATIC OFF CACHE BOOL "" FORCE)
159159
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/ThirdParty/tbb EXCLUDE_FROM_ALL)
160160
set(TBB_FOUND TRUE)
161-
set(TBB_LIBRARIES tbb_static tbb_interface)
161+
set(TBB_LIBRARIES tbb tbb_interface)
162162
set(TBB_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/ThirdParty/tbb/include)
163-
add_library(TBB::tbb ALIAS tbb_static)
163+
add_library(TBB::tbb ALIAS tbb)
164164
add_library(TBB::tbb_interface ALIAS tbb_interface)
165165
install(TARGETS ${TBB_LIBRARIES} EXPORT pagmo_export
166166
LIBRARY DESTINATION ${CMAKE_CURRENT_BINARY_DIR}

0 commit comments

Comments
 (0)