parallel_Frechet_DS_2 uses Parallel_if_available_tag, hence compilable without TBB

This commit is contained in:
Andreas Fabri 2025-05-07 14:12:11 +01:00
parent 69d0c792e6
commit bdab5a95ec
1 changed files with 2 additions and 1 deletions

View File

@ -25,12 +25,13 @@ create_single_source_cgal_program( "Frechet_distance_d.cpp" )
target_link_libraries(Frechet_distance_d PUBLIC CGAL::Eigen3_support)
endif()
create_single_source_cgal_program("parallel_Frechet_DS_2.cpp")
find_package(TBB QUIET)
include(CGAL_TBB_support)
if(TARGET CGAL::TBB_support)
message(STATUS "Found TBB")
create_single_source_cgal_program("parallel_Frechet_DS_2.cpp")
target_link_libraries(parallel_Frechet_DS_2 PRIVATE CGAL::TBB_support)
else()
message(STATUS "NOTICE: The example 'parallel_Frechet_DS_2' requires TBB, and will not be compiled")