Skip to content

Commit

Permalink
Changing TBB from static to shared
Browse files Browse the repository at this point in the history
  • Loading branch information
dmikushin committed Oct 21, 2020
1 parent ccb4741 commit 7a300de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,13 @@ endif()
# TODO This should actually be a submodule of pagmo.
# The only reason to have it here is to avoid forking pagmo as well.
set(TBB_BUILD_TESTS OFF CACHE BOOL "" FORCE)
set(TBB_BUILD_SHARED OFF CACHE BOOL "" FORCE)
set(TBB_BUILD_STATIC ON CACHE BOOL "" FORCE)
set(TBB_BUILD_SHARED ON CACHE BOOL "" FORCE)
set(TBB_BUILD_STATIC OFF CACHE BOOL "" FORCE)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/ThirdParty/tbb EXCLUDE_FROM_ALL)
set(TBB_FOUND TRUE)
set(TBB_LIBRARIES tbb_static tbb_interface)
set(TBB_LIBRARIES tbb tbb_interface)
set(TBB_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/ThirdParty/tbb/include)
add_library(TBB::tbb ALIAS tbb_static)
add_library(TBB::tbb ALIAS tbb)
add_library(TBB::tbb_interface ALIAS tbb_interface)
install(TARGETS ${TBB_LIBRARIES} EXPORT pagmo_export
LIBRARY DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
Expand Down

0 comments on commit 7a300de

Please sign in to comment.