From b915a4258550917cadb7cdd2f522b6e488b4db59 Mon Sep 17 00:00:00 2001 From: Alex Turbov Date: Fri, 24 May 2019 19:12:44 +0900 Subject: FindBoost: Add compiler features for Boost Contract library --- Modules/FindBoost.cmake | 10 ++++++++++ 1 file changed, 10 insertions(+) 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() -- cgit v0.12