From d36596b86c973387237d10bac5d690bfc0aaa103 Mon Sep 17 00:00:00 2001 From: Carl Poelking <cp605@dexter.cm.cluster> Date: Wed, 13 Apr 2016 14:22:06 +0100 Subject: [PATCH] Boost required version. --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bc35287..c9bab98 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,11 +23,13 @@ find_package(PythonLibs) include_directories(${PYTHON_INCLUDE_DIRS}) if(DEFINED ENV{BOOST_ROOT}) - message("-- BOOST_ROOT is set: $ENV{BOOST_ROOT}") + set(BOOST_ROOT "$ENV{BOOST_ROOT}") + message("-- BOOST_ROOT is set: ${BOOST_ROOT}") else(DEFINED ENV{BOOST_ROOT}) message("-- Note: BOOST_ROOT not set.") endif(DEFINED ENV{BOOST_ROOT}) -find_package(Boost COMPONENTS python mpi filesystem serialization) +message("-- BOOST_ROOT is set: ${BOOST_ROOT}") +find_package(Boost 1.60.0 COMPONENTS python mpi filesystem serialization) include_directories(${Boost_INCLUDE_DIRS}) find_package(MPI REQUIRED) -- GitLab