summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-09-04 12:43:12 -0400
committerBrad King <brad.king@kitware.com>2018-09-04 12:43:12 -0400
commit6be7097dbe7373e78d5a3fe054895443f962aa0a (patch)
tree1ae0737cd6157f528ff329fdcd4761ce135b79d1
parent80bb9214dd6bac5c0d2e8eea04d111ee419a89fe (diff)
parent9a800c12fcf357b0eeb585a973a6f61790687795 (diff)
downloadcmake-6be7097dbe7373e78d5a3fe054895443f962aa0a.tar.gz
Merge branch 'FindBoost-old-context' into release-3.12
Merge-request: !2348
-rw-r--r--Modules/FindBoost.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/FindBoost.cmake b/Modules/FindBoost.cmake
index 4e5c45db5a..d5e701170f 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")