From: Martin Quinson Date: Sun, 14 May 2017 15:07:44 +0000 (+0200) Subject: use the Boost.test library where it was detected by cmake X-Git-Tag: v3.16~274^2~23 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/744fe4768d577093b57a30beb19425964d24bca7 use the Boost.test library where it was detected by cmake This should fix the case when it's installed in non-standard locations. --- diff --git a/tools/cmake/Tests.cmake b/tools/cmake/Tests.cmake index fb4dc7b8ef..c432450a3e 100644 --- a/tools/cmake/Tests.cmake +++ b/tools/cmake/Tests.cmake @@ -93,7 +93,7 @@ ADD_TEST(testall ${CMAKE_BINARY_DIR}/testall) if(Boost_UNIT_TEST_FRAMEWORK_FOUND) add_executable (unit_tmgr src/surf/trace_mgr_test.cpp) - target_link_libraries(unit_tmgr simgrid boost_unit_test_framework) + target_link_libraries(unit_tmgr simgrid ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY}) ADD_TEST(unit_tmgr ${CMAKE_BINARY_DIR}/unit_tmgr --build_info=yes) else()