From 744fe4768d577093b57a30beb19425964d24bca7 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Sun, 14 May 2017 17:07:44 +0200 Subject: [PATCH] use the Boost.test library where it was detected by cmake This should fix the case when it's installed in non-standard locations. --- tools/cmake/Tests.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.20.1