Commit 182b7ba3 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

fixed configuration of TBB support in CMakeLists.txt

parent d0266c13
Loading
Loading
Loading
Loading
+6 −9
Original line number Diff line number Diff line
@@ -34,13 +34,10 @@ else()
    message("The Qt5 component of CGAL was not found, graphical targets will not be built.")
endif()

# FIXME: parallel mesher segfaults (inside cgal)
option(CGAL_ACTIVATE_CONCURRENT_MESH_3 "Activate parallelism in Mesh_3" OFF)

# And add -DCGAL_CONCURRENT_MESH_3 if that option is ON
if( CGAL_ACTIVATE_CONCURRENT_MESH_3 )
    find_package(TBB REQUIRED)
    target_compile_definitions(cgal-mesher PRIVATE
        -DCGAL_CONCURRENT_MESH_3
    )
option(CGAL_ACTIVATE_CONCURRENT_MESH_3 "Activate parallelism in Mesh_3" ON)
find_package(TBB)
if( CGAL_ACTIVATE_CONCURRENT_MESH_3 AND TBB_FOUND )
    include(CGAL_TBB_support)
    target_compile_definitions(cgal-mesher PRIVATE -DCGAL_CONCURRENT_MESH_3)
    target_link_libraries(cgal-mesher PUBLIC CGAL::TBB_support)
endif()