Skip to content

Commit

Permalink
cmake build system: fix compilation of supernova testsuite
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Blechmann <tim@klingt.org>
  • Loading branch information
timblechmann committed Apr 11, 2012
1 parent 54fe971 commit f026427
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ if(CURL)
endif()

set(Boost_USE_MULTITHREADED ON)
find_package( Boost 1.48.0 COMPONENTS thread system filesystem program_options regex )
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
Expand Down
7 changes: 6 additions & 1 deletion testsuite/supernova/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,12 @@ add_library(boost_test STATIC boost_test.cpp)
foreach(test ${simple_tests})
string(REPLACE .cpp "" test_name ${test} )
add_executable(${test_name} ${test})
target_link_libraries(${test_name} boost_thread boost_system boost_test)

if (Boost_FOUND)
target_link_libraries(${test_name} ${Boost_THREAD_LIBRARY} ${Boost_SYSTEM_LIBRARY} ${Boost_TEST_LIBRARY})
else()
target_link_libraries(${test_name} boost_thread boost_system boost_test)
endif()
target_link_libraries(${test_name} oscpack tlsf)
target_link_libraries(${test_name} ${PTHREADS_LIBRARY})
target_link_libraries(${test_name} ${SNDFILE_LIBRARIES})
Expand Down

0 comments on commit f026427

Please sign in to comment.