mirror of https://github.com/CGAL/cgal
Fix Ridges_3 and SM_shortest_path with Boost 1.70
This commit is contained in:
parent
665c4e2c84
commit
b7631f19b5
|
|
@ -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" )
|
||||||
|
|
|
||||||
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue