mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 12:49:36 -06:00
FindBoost: Record compiler features for Boost 1.67 and above
Remove the 1.67 upper-bound on compiler feature computation so that with newer versions we at least get it mostly right. Leave a comment with notes about updating features for future versions.
This commit is contained in:
@@ -1048,11 +1048,17 @@ endfunction()
|
|||||||
# Some boost libraries may require particular set of compler features.
|
# Some boost libraries may require particular set of compler features.
|
||||||
# The very first one was `boost::fiber` introduced in Boost 1.62.
|
# The very first one was `boost::fiber` introduced in Boost 1.62.
|
||||||
# One can check required compiler features of it in
|
# One can check required compiler features of it in
|
||||||
# `${Boost_ROOT}/libs/fiber/build/Jamfile.v2`.
|
# - `${Boost_ROOT}/libs/fiber/build/Jamfile.v2`;
|
||||||
|
# - `${Boost_ROOT}/libs/context/build/Jamfile.v2`.
|
||||||
|
#
|
||||||
|
# TODO (Re)Check compiler features on (every?) release ???
|
||||||
|
# One may use the following command to get the files to check:
|
||||||
|
#
|
||||||
|
# $ find . -name Jamfile.v2 | grep build | xargs grep -l cxx1
|
||||||
#
|
#
|
||||||
function(_Boost_COMPILER_FEATURES component _ret)
|
function(_Boost_COMPILER_FEATURES component _ret)
|
||||||
# Boost >= 1.62 and < 1.67
|
# Boost >= 1.62
|
||||||
if(NOT Boost_VERSION VERSION_LESS 106200 AND Boost_VERSION VERSION_LESS 106700)
|
if(NOT Boost_VERSION VERSION_LESS 106200)
|
||||||
set(_Boost_FIBER_COMPILER_FEATURES
|
set(_Boost_FIBER_COMPILER_FEATURES
|
||||||
cxx_alias_templates
|
cxx_alias_templates
|
||||||
cxx_auto_type
|
cxx_auto_type
|
||||||
|
|||||||
Reference in New Issue
Block a user