From 31d742063affa04eee6a7e42aecb6d6b8b9bf064 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Sat, 12 Jan 2013 09:01:02 +0000 Subject: [PATCH] Fix Boost version detection git-svn-id: https://svn.code.sf.net/p/gnss-sdr/code/trunk@310 64b25241-fba3-4117-9849-534c7e92360d --- CMakeLists.txt | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 399b5a424..6bb0b5a32 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -83,14 +83,13 @@ set(Boost_ADDITIONAL_VERSIONS "1.60.0" "1.60" "1.61.0" "1.61" "1.62.0" "1.62" "1.63.0" "1.63" "1.64.0" "1.64" "1.65.0" "1.65" "1.66.0" "1.66" "1.67.0" "1.67" "1.68.0" "1.68" "1.69.0" "1.69" ) -find_package(Boost "1.45") - -if(NOT Boost_FOUND) - message(FATAL_ERROR "Boost required to compile gnss-sdr") -endif() +set(Boost_MIN_VERSION "1.45.0") set(Boost_USE_MULTITHREAD ON) set(Boost_USE_STATIC_LIBS OFF) -find_package(Boost COMPONENTS date_time system filesystem thread REQUIRED) +find_package(Boost ${Boost_MIN_VERSION} COMPONENTS date_time system filesystem thread REQUIRED) +if(NOT Boost_FOUND) + message(FATAL_ERROR "Fatal error: Boost (version >=1.45.0) required.") +endif(NOT Boost_FOUND) include_directories(${Boost_INCLUDE_DIRS}) @@ -401,4 +400,4 @@ list(APPEND CMAKE_CXX_FLAGS ${MY_CXX_FLAGS}) ######################################################################## add_subdirectory(src) - \ No newline at end of file +