Skip to content

Commit

Permalink
proper TBB linkage for parallel algorithms
Browse files Browse the repository at this point in the history
  • Loading branch information
JPenuchot committed May 30, 2023
1 parent 7f142dc commit a06e1d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions cmake/dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ find_package(Boost REQUIRED)
find_package(sciplot REQUIRED)
find_package(LLVM REQUIRED CONFIG)
find_package(fmt REQUIRED)
find_package(TBB REQUIRED)

if(${CTBENCH_ENABLE_TESTS})
find_package(Catch2 REQUIRED)
Expand Down
7 changes: 4 additions & 3 deletions grapher/cmake/grapher-target.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ llvm_map_components_to_libnames(llvm_libs support)

target_link_libraries(grapher
PUBLIC
${llvm_libs}
TBB::tbb
ctbench-compile-opts
fmt::fmt
nlohmann_json::nlohmann_json
sciplot::sciplot
fmt::fmt
stdc++fs
tbb
${llvm_libs})
)

target_compile_options(grapher PUBLIC -DJSON_NOEXCEPTION)

0 comments on commit a06e1d6

Please sign in to comment.