If CGAL_TEST_SUITE, then plugins do not depend on Polyhedron_3

This commit is contained in:
Laurent Rineau 2024-01-11 15:28:40 +01:00
parent 2ccb65f6ea
commit 1491b754f7
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
endif()
# Link with CGAL
target_link_libraries( ${plugin_name} PUBLIC CGAL::CGAL )
if(TARGET Polyhedron_3)
if(NOT CGAL_TEST_SUITE AND TARGET Polyhedron_3)
add_dependencies( ${plugin_name} Polyhedron_3 )
endif()
if(NOT TARGET CGALlab_all_plugins)