CGAL_Boost_USE_STATIC_LIBS is now an (advanced) CMake option on all platforms, and is stored in the generated CGALConfig.cmake. That way, its value is proposed as the default value for the same option when programs using CGAL are configured using CMake. The script UseCGAL includes the module CGAL_TweakFindBoost, to define Boost_USE_STATIC_LIBS and Boost_ADDITIONAL_VERSIONS.
30 lines
1.0 KiB
CMake
30 lines
1.0 KiB
CMake
if ( NOT CGAL_Boost_Setup )
|
|
|
|
include(CGAL_TweakFindBoost)
|
|
# In the documentation, we say we require Boost-1.39, but technically we
|
|
# require 1.33.1. Some packages may require more recent versions, though.
|
|
find_package( Boost 1.33.1 REQUIRED thread )
|
|
|
|
message( STATUS "Boost include: ${Boost_INCLUDE_DIRS}" )
|
|
message( STATUS "Boost libraries: ${Boost_LIBRARIES}" )
|
|
message( STATUS "Boost definitions: ${Boost_DEFINITIONS}" )
|
|
|
|
set ( CGAL_USE_BOOST 1 )
|
|
|
|
include(CGAL_Macros)
|
|
|
|
add_to_cached_list(CGAL_3RD_PARTY_INCLUDE_DIRS ${Boost_INCLUDE_DIRS} )
|
|
add_to_cached_list(CGAL_3RD_PARTY_LIBRARIES_DIRS ${Boost_LIBRARY_DIRS} )
|
|
add_to_cached_list(CGAL_3RD_PARTY_DEFINITIONS ${Boost_DEFINITIONS} )
|
|
|
|
if ( NOT MSVC )
|
|
add_to_cached_list(CGAL_3RD_PARTY_LIBRARIES ${Boost_LIBRARIES} )
|
|
endif()
|
|
|
|
message( STATUS "USING BOOST_VERSION = '${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION}.${Boost_SUBMINOR_VERSION}'" )
|
|
|
|
set ( CGAL_Boost_Setup TRUE )
|
|
|
|
endif()
|
|
|