Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
use the Boost.test library where it was detected by cmake
authorMartin Quinson <martin.quinson@loria.fr>
Sun, 14 May 2017 15:07:44 +0000 (17:07 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Sun, 14 May 2017 15:07:49 +0000 (17:07 +0200)
This should fix the case when it's installed in non-standard locations.

tools/cmake/Tests.cmake

index fb4dc7b..c432450 100644 (file)
@@ -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()