From 10b37057f41fa154583b8733d25fd91aaf0bebf2 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Wed, 9 Oct 2024 09:07:08 +0100 Subject: [PATCH] Only link to Boost::program_options and not to Do the same later elsewhere, but let's first see a green testsuite --- Ridges_3/examples/Ridges_3/CMakeLists.txt | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/Ridges_3/examples/Ridges_3/CMakeLists.txt b/Ridges_3/examples/Ridges_3/CMakeLists.txt index ef3d5b1e90ff..eecde864e41b 100644 --- a/Ridges_3/examples/Ridges_3/CMakeLists.txt +++ b/Ridges_3/examples/Ridges_3/CMakeLists.txt @@ -19,15 +19,10 @@ if(TARGET CGAL::Eigen3_support) target_link_libraries(Ridges_Umbilics_LCC PRIVATE CGAL::Eigen3_support) add_definitions("-DCGAL_USE_BOOST_PROGRAM_OPTIONS") - if(TARGET Boost::program_options) - target_link_libraries(Compute_Ridges_Umbilics PRIVATE Boost::program_options) - target_link_libraries(Ridges_Umbilics_SM PRIVATE Boost::program_options) - target_link_libraries(Ridges_Umbilics_LCC PRIVATE Boost::program_options) - else() - target_link_libraries(Compute_Ridges_Umbilics PRIVATE ${Boost_PROGRAM_OPTIONS_LIBRARY}) - target_link_libraries(Ridges_Umbilics_SM PRIVATE ${Boost_PROGRAM_OPTIONS_LIBRARY}) - target_link_libraries(Ridges_Umbilics_LCC PRIVATE ${Boost_PROGRAM_OPTIONS_LIBRARY}) - endif() + target_link_libraries(Compute_Ridges_Umbilics PRIVATE Boost::program_options) + target_link_libraries(Ridges_Umbilics_SM PRIVATE Boost::program_options) + target_link_libraries(Ridges_Umbilics_LCC PRIVATE Boost::program_options) + else() message("NOTICE: This project requires Boost Program Options and will not be compiled.") endif()