Skip to content

Commit

Permalink
{cmake} Fixes TBB linking on Ubuntu 19.x (#34)
Browse files Browse the repository at this point in the history
Ubuntu 19.x includes files for both CONFIG (TBBMakeConfig.cmake) and MODULE (FindTBB.cmake) style find_package. We need to force CONFIG because that is the style we are expecting.

Related #2
Fixes #33
  • Loading branch information
asmaloney authored Apr 28, 2020
1 parent bb858fa commit e4c9146
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ endif()
# TBB (optional)
# Must come before CGAL so it can use TBB properly
if ( CCCORELIB_USE_TBB )
find_package( TBB COMPONENTS tbb )
find_package( TBB COMPONENTS tbb CONFIG )

if ( TBB_FOUND )
target_link_libraries( CCCoreLib
Expand Down

0 comments on commit e4c9146

Please sign in to comment.