summaryrefslogtreecommitdiffstats
path: root/Modules/FindBoost.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-05-28 15:42:02 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-05-28 15:42:12 (GMT)
commit540640fc0aca7f181098b0270fb1cae1cd684791 (patch)
treefab8af526c75060a56b803f0c64fe1f063d3c5df /Modules/FindBoost.cmake
parente13b18e2c70f42c23ed7e7fddb93557ce19b7359 (diff)
parentb915a4258550917cadb7cdd2f522b6e488b4db59 (diff)
downloadCMake-540640fc0aca7f181098b0270fb1cae1cd684791.zip
CMake-540640fc0aca7f181098b0270fb1cae1cd684791.tar.gz
CMake-540640fc0aca7f181098b0270fb1cae1cd684791.tar.bz2
Merge topic 'FindBoost-contract-requires-compile-features'
b915a42585 FindBoost: Add compiler features for Boost Contract library Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3368
Diffstat (limited to 'Modules/FindBoost.cmake')
-rw-r--r--Modules/FindBoost.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/Modules/FindBoost.cmake b/Modules/FindBoost.cmake
index 018f675..464f229 100644
--- a/Modules/FindBoost.cmake
+++ b/Modules/FindBoost.cmake
@@ -1093,6 +1093,16 @@ function(_Boost_COMPILER_FEATURES component _ret)
# Compiler feature for `context` same as for `fiber`.
set(_Boost_CONTEXT_COMPILER_FEATURES ${_Boost_FIBER_COMPILER_FEATURES})
endif()
+
+ # Boost Contract library available in >= 1.67
+ if(NOT Boost_VERSION_STRING VERSION_LESS 1.67.0)
+ # From `libs/contract/build/boost_contract_build.jam`
+ set(_Boost_CONTRACT_COMPILER_FEATURES
+ cxx_lambdas
+ cxx_variadic_templates
+ )
+ endif()
+
string(TOUPPER ${component} uppercomponent)
set(${_ret} ${_Boost_${uppercomponent}_COMPILER_FEATURES} PARENT_SCOPE)
endfunction()