Skip to content

Commit

Permalink
cmake: improve support for building with system boost libraries
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Blechmann <tim@klingt.org>
  • Loading branch information
timblechmann committed Sep 30, 2012
1 parent 001cbc0 commit 81d1511
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions CMakeLists.txt
Expand Up @@ -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)
Expand Down

0 comments on commit 81d1511

Please sign in to comment.