Fix Boost version detection

git-svn-id: https://svn.code.sf.net/p/gnss-sdr/code/trunk@310 64b25241-fba3-4117-9849-534c7e92360d
This commit is contained in:
Carles Fernandez 2013-01-12 09:01:02 +00:00
parent c08e87e8cf
commit 31d742063a
1 changed files with 6 additions and 7 deletions

View File

@ -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)