Fix Ridges_3 and SM_shortest_path with Boost 1.70

This commit is contained in:
Laurent Rineau 2019-05-06 09:38:50 +02:00
parent 665c4e2c84
commit b7631f19b5
2 changed files with 6 additions and 0 deletions

View File

@ -26,6 +26,9 @@ if ( CGAL_FOUND )
if(EIGEN3_FOUND OR LAPACK_FOUND) if(EIGEN3_FOUND OR LAPACK_FOUND)
# Link with Boost.ProgramOptions (optional) # Link with Boost.ProgramOptions (optional)
find_package(Boost QUIET COMPONENTS program_options) find_package(Boost QUIET COMPONENTS program_options)
if(TARGET Boost::program_options)
set(Boost_PROGRAM_OPTIONS_LIBRARY Boost::program_options)
endif()
if(Boost_PROGRAM_OPTIONS_FOUND) if(Boost_PROGRAM_OPTIONS_FOUND)
if( CGAL_AUTO_LINK_ENABLED ) if( CGAL_AUTO_LINK_ENABLED )
message( STATUS "Boost.ProgramOptions library: found" ) message( STATUS "Boost.ProgramOptions library: found" )

View File

@ -29,6 +29,9 @@ if ( CGAL_FOUND )
# Link with Boost.ProgramOptions (optional) # Link with Boost.ProgramOptions (optional)
find_package(Boost QUIET COMPONENTS program_options) find_package(Boost QUIET COMPONENTS program_options)
if(Boost_PROGRAM_OPTIONS_FOUND) if(Boost_PROGRAM_OPTIONS_FOUND)
if(TARGET Boost::program_options)
set(Boost_PROGRAM_OPTIONS_LIBRARY Boost::program_options)
endif()
if( CGAL_AUTO_LINK_ENABLED ) if( CGAL_AUTO_LINK_ENABLED )
message( STATUS "Boost.ProgramOptions library: found" ) message( STATUS "Boost.ProgramOptions library: found" )
else() else()