Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

silence cmake warning about FindBoost #8656

Open
wants to merge 1 commit into
base: 5.6.x-branch
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions Installation/cmake/modules/CGAL_TweakFindBoost.cmake
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
# - Defines Boost_USE_STATIC_LIBS and Boost_ADDITIONAL_VERSIONS
#
#
# This module sets the CMake variables:
#
#
# == Boost_USE_STATIC_LIBS ==
#
#
# The option CGAL_Boost_USE_STATIC_LIBS is created in the cache, as
# advanced option. If CGALConfig.cmake has been loaded, the default value
# of that option is the value loaded from CGALConfig.cmake (this file was
# created during the configuration of CGAL libraries). Otherwise, the
# default value of that option is OFF.
#
#
# The variable Boost_USE_STATIC_LIBS is set to the value of the option
# CGAL_Boost_USE_STATIC_LIBS.
#
#
# Additionally, if Boost_USE_STATIC_LIBS is OFF, and the auto-linking is
# enabled, the definition BOOST_ALL_DYN_LINK is added to
# CGAL_3RD_PARTY_DEFINITIONS, so that the auto-linking feature on Windows
# knows that it must search for dynamic libraries.
#
#
# == Boost_ADDITIONAL_VERSIONS ==
#
#
# The variable Boost_ADDITIONAL_VERSIONS is filled with a long list of
# Boost versions. That allows the module FindBoost to find more recent
# Boost versions, even if the file FindBoost.cmake is old.
Expand All @@ -28,6 +28,9 @@ if( NOT CGAL_TweakFindBoost )
if(POLICY CMP0077)
cmake_policy(SET CMP0077 NEW)
endif()
if(POLICY CMP0167)
cmake_policy(SET CMP0167 NEW)
endif()
if(DEFINED CGAL_Boost_USE_STATIC_LIBS)
# If the option is loaded from CGALConfig.cmake, use its value as default
# value. But the user will still have the choice to change the
Expand All @@ -50,7 +53,7 @@ if( NOT CGAL_TweakFindBoost )
option(CGAL_Boost_USE_STATIC_LIBS "Link with static Boost libraries" ${CGAL_Boost_USE_STATIC_LIBS_DEFAULT})
mark_as_advanced(CGAL_Boost_USE_STATIC_LIBS)

if(CGAL_Boost_USE_STATIC_LIBS)
if(CGAL_Boost_USE_STATIC_LIBS)
set(Boost_USE_STATIC_LIBS ON)
else()
set(Boost_USE_STATIC_LIBS OFF)
Expand Down
Loading