Skip to content

Commit

Permalink
Link against TBB if available (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
Earthwings authored May 26, 2024
1 parent e6845fb commit d88c5e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,10 @@ if (PHMAP_BUILD_EXAMPLES)
add_executable(ex_llil4map examples/llil4map.cc phmap.natvis)
target_include_directories(ex_llil4map PRIVATE ${Boost_INCLUDE_DIRS})
target_compile_features(ex_llil4map PUBLIC cxx_std_20)
find_package(TBB COMPONENTS tbb)
if (TBB_FOUND)
target_link_libraries(ex_llil4map PRIVATE TBB::tbb)
endif()
target_link_libraries(ex_llil4map PRIVATE OpenMP::OpenMP_CXX)
target_compile_options(ex_llil4map PRIVATE "${OpenMP_CXX_FLAGS}")
file(COPY examples/llil_utils DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")
Expand Down

0 comments on commit d88c5e1

Please sign in to comment.