summaryrefslogtreecommitdiffstats
path: root/Modules/FindBoost.cmake
diff options
context:
space:
mode:
authorAlex Turbov <i.zaufi@gmail.com>2019-05-24 10:12:44 (GMT)
committerBrad King <brad.king@kitware.com>2019-05-24 11:13:56 (GMT)
commitb915a4258550917cadb7cdd2f522b6e488b4db59 (patch)
tree99337f8776e1b235b726a5a1bb0645f705075ade /Modules/FindBoost.cmake
parentf872033d7531ed1d7d7345ff7873442ec8dbcee1 (diff)
downloadCMake-b915a4258550917cadb7cdd2f522b6e488b4db59.zip
CMake-b915a4258550917cadb7cdd2f522b6e488b4db59.tar.gz
CMake-b915a4258550917cadb7cdd2f522b6e488b4db59.tar.bz2
FindBoost: Add compiler features for Boost Contract library
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 552c2fd..6a59dff 100644
--- a/Modules/FindBoost.cmake
+++ b/Modules/FindBoost.cmake
@@ -1075,6 +1075,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()