Skip to content

Commit

Permalink
find package if it's not a target
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-laurin committed Jul 22, 2020
1 parent 529febf commit 266e425
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Plugins/Libigl/stkLibiglCopyleft/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ if(CGAL_FOUND)
ON)

if(CGAL_ACTIVATE_CONCURRENCY)
find_package(TBB REQUIRED)
if (NOT TARGET TBB)
find_package(TBB REQUIRED)
endif ()
if(TBB_FOUND)
add_definitions( -DNOMINMAX -DCGAL_LINKED_WITH_TBB )
endif(TBB_FOUND)
Expand Down

0 comments on commit 266e425

Please sign in to comment.