Skip to content

Commit

Permalink
Only link to Boost::program_options and not to Do the same later else…
Browse files Browse the repository at this point in the history
…where, but let's first see a green testsuite
  • Loading branch information
afabri committed Oct 9, 2024
1 parent d817dda commit 10b3705
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions Ridges_3/examples/Ridges_3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 10b3705

Please sign in to comment.