mirror of https://github.com/CGAL/cgal
Only link with Boost::program_options - Supported the minimum required cmake
This commit is contained in:
parent
5829760b05
commit
9bf4134043
|
|
@ -10,13 +10,8 @@ find_package(Boost COMPONENTS program_options)
|
|||
if(Boost_PROGRAM_OPTIONS_FOUND)
|
||||
create_single_source_cgal_program("random_grid.cpp")
|
||||
create_single_source_cgal_program("random_disc_2.cpp")
|
||||
if(TARGET Boost::program_options)
|
||||
target_link_libraries(random_grid PRIVATE Boost::program_options)
|
||||
target_link_libraries(random_disc_2 PRIVATE Boost::program_options)
|
||||
else()
|
||||
target_link_libraries(random_grid PRIVATE ${Boost_PROGRAM_OPTIONS_LIBRARY})
|
||||
target_link_libraries(random_disc_2 PRIVATE ${Boost_PROGRAM_OPTIONS_LIBRARY})
|
||||
endif()
|
||||
target_link_libraries(random_grid PRIVATE Boost::program_options)
|
||||
target_link_libraries(random_disc_2 PRIVATE Boost::program_options)
|
||||
else()
|
||||
message("NOTICE: The benchmarks requires Boost Program Options, and will not be compiled.")
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -15,12 +15,8 @@ if(TARGET CGAL::Eigen3_support)
|
|||
find_package(Boost QUIET COMPONENTS program_options)
|
||||
if(Boost_PROGRAM_OPTIONS_FOUND)
|
||||
create_single_source_cgal_program("Mesh_estimation.cpp")
|
||||
target_link_libraries(Mesh_estimation PRIVATE CGAL::Eigen3_support)
|
||||
if(TARGET Boost::program_options)
|
||||
target_link_libraries(Mesh_estimation PRIVATE Boost::program_options)
|
||||
else()
|
||||
target_link_libraries(Mesh_estimation PRIVATE ${Boost_PROGRAM_OPTIONS_LIBRARY})
|
||||
endif()
|
||||
target_link_libraries(Mesh_estimation PRIVATE CGAL::Eigen3_support
|
||||
Boost::program_options)
|
||||
else()
|
||||
message(STATUS "NOTICE: The example 'Mesh_estimation' requires Boost Program Options, and will not be compiled.")
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -57,12 +57,10 @@ if(Boost_FILESYSTEM_FOUND)
|
|||
if(VTK_LIBRARIES)
|
||||
target_compile_definitions(io_image_plugin PRIVATE -DCGAL_USE_VTK -DNOMINMAX)
|
||||
endif()
|
||||
if(TARGET Boost::filesystem)
|
||||
target_link_libraries(io_image_plugin PUBLIC Boost::filesystem
|
||||
Boost::system)
|
||||
else()
|
||||
target_link_libraries(io_image_plugin PUBLIC ${Boost_LIBRARIES})
|
||||
endif()
|
||||
|
||||
target_link_libraries(io_image_plugin PUBLIC Boost::filesystem
|
||||
Boost::system)
|
||||
|
||||
else()
|
||||
message(STATUS "NOTICE: the Io_image_plugin requires boost-filesystem, and will not be compiled")
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Reference in New Issue