From 33d0a2e0d5e09f3e49d32f2ebbf1dbfe8f564059 Mon Sep 17 00:00:00 2001 From: dehnert Date: Tue, 15 Nov 2016 10:26:51 -0800 Subject: [PATCH] adapted required Boost version Former-commit-id: 5d053091c61ab4ad0c322f8c4dcbbc3ce4068e65 [formerly d95625df84b69090844fbf661b3b1f8671f386ee] Former-commit-id: 8735338589aa96d2cf3f53aba5a4fc9591e9fcb1 --- resources/3rdparty/CMakeLists.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/resources/3rdparty/CMakeLists.txt b/resources/3rdparty/CMakeLists.txt index f9d422482..1ce092312 100644 --- a/resources/3rdparty/CMakeLists.txt +++ b/resources/3rdparty/CMakeLists.txt @@ -63,8 +63,14 @@ set(Boost_USE_STATIC_LIBS ${USE_BOOST_STATIC_LIBRARIES}) set(Boost_USE_MULTITHREADED ON) set(Boost_USE_STATIC_RUNTIME OFF) -find_package(Boost 1.57.0 QUIET REQUIRED COMPONENTS filesystem system) - +find_package(Boost 1.61.0 QUIET REQUIRED COMPONENTS filesystem system) +if (NOT Boost_FOUND) + if (Boost_VERSION) + message(FATAL_ERROR "The required Boost version is 1.61.0 or newer, however, only ${Boost_VERSION} was found.") + else () + message(FATAL_ERROR "Boost was not found.") + endif () +endif () if ((NOT Boost_LIBRARY_DIRS) OR ("${Boost_LIBRARY_DIRS}" STREQUAL "")) set(Boost_LIBRARY_DIRS "${Boost_INCLUDE_DIRS}/stage/lib") endif ()