From f429e08851307eab9efbfc2100f7dc178c16e648 Mon Sep 17 00:00:00 2001 From: Michael Krasnyk Date: Thu, 15 Dec 2016 12:07:07 +0100 Subject: [PATCH] Enforce Boost>=1.62 for MSVC Reference: https://github.com/Project-OSRM/osrm-backend/issues/3088#issuecomment-256485167 --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 336c5a4e4..dc541d458 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -456,6 +456,9 @@ else() find_package(Boost 1.54 REQUIRED COMPONENTS ${BOOST_COMPONENTS}) add_dependency_includes(${Boost_INCLUDE_DIRS}) + if(WIN32 AND Boost_VERSION VERSION_LESS 106200) + message(FATAL_ERROR "Building with MSVC needs Boost 1.62 with CXX11_CONSTEXPR support") + endif() find_package(TBB REQUIRED) add_dependency_includes(${TBB_INCLUDE_DIR})