summaryrefslogtreecommitdiffstats
path: root/Modules/FindBoost.cmake
diff options
context:
space:
mode:
authorIgor Kostenko <igor_kostenko@prqa.com>2018-09-04 14:12:23 (GMT)
committerBrad King <brad.king@kitware.com>2018-09-04 16:41:36 (GMT)
commit9a800c12fcf357b0eeb585a973a6f61790687795 (patch)
treec35c3db6ed6d1976418bf7974dc1f1717fb26b78 /Modules/FindBoost.cmake
parentc4ab098097f4fe1bc85ee29c6de390dff435f63f (diff)
downloadCMake-9a800c12fcf357b0eeb585a973a6f61790687795.zip
CMake-9a800c12fcf357b0eeb585a973a6f61790687795.tar.gz
CMake-9a800c12fcf357b0eeb585a973a6f61790687795.tar.bz2
FindBoost: Fix context discovery for 1.60 and below
* `all.hpp` was removed in 1.68: https://github.com/boostorg/context/commit/2e37599461912cc1679f106a25456a493f7f0b27 * `fcontext.hpp` was moved to detail in 1.61: https://github.com/boostorg/context/commit/c2f0dfdf2608c1ebaa2229fa6f358fe6aa103561 Fixes: #18126
Diffstat (limited to 'Modules/FindBoost.cmake')
-rw-r--r--Modules/FindBoost.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/FindBoost.cmake b/Modules/FindBoost.cmake
index 4e5c45d..d5e7011 100644
--- a/Modules/FindBoost.cmake
+++ b/Modules/FindBoost.cmake
@@ -881,7 +881,11 @@ function(_Boost_COMPONENT_HEADERS component _hdrs)
set(_Boost_CHRONO_HEADERS "boost/chrono.hpp")
set(_Boost_CONTAINER_HEADERS "boost/container/container_fwd.hpp")
set(_Boost_CONTRACT_HEADERS "boost/contract.hpp")
- set(_Boost_CONTEXT_HEADERS "boost/context/detail/fcontext.hpp")
+ if(Boost_VERSION VERSION_LESS 106100)
+ set(_Boost_CONTEXT_HEADERS "boost/context/all.hpp")
+ else()
+ set(_Boost_CONTEXT_HEADERS "boost/context/detail/fcontext.hpp")
+ endif()
set(_Boost_COROUTINE_HEADERS "boost/coroutine/all.hpp")
set(_Boost_DATE_TIME_HEADERS "boost/date_time/date.hpp")
set(_Boost_EXCEPTION_HEADERS "boost/exception/exception.hpp")