From 81d151101bca63b432a5a1bde5cb1242b0982fb7 Mon Sep 17 00:00:00 2001 From: Tim Blechmann Date: Sun, 30 Sep 2012 12:29:08 +0200 Subject: [PATCH] cmake: improve support for building with system boost libraries Signed-off-by: Tim Blechmann --- CMakeLists.txt | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d8e9a5a163f..14244d02b05 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -221,19 +221,15 @@ if(CURL) endif() endif() -if (SYSTEM_BOOST) +if(SYSTEM_BOOST) set(Boost_USE_MULTITHREADED ON) - find_package( Boost 1.48.0 COMPONENTS thread system filesystem program_options regex test ) - - if (SC_OX) - set(Boost_FOUND OFF) # boost 1.48 does not like c++11 - endif() + find_package( Boost 1.50.0 COMPONENTS thread system filesystem program_options regex test_exec_monitor ) endif() if (Boost_FOUND) link_directories(${Boost_LIBRARY_DIRS}) else() - message("building boost libraries manually") + message(STATUS "building boost libraries manually") endif() if(SYSTEM_YAMLCPP)