Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
try to help netbsd compiling the unit_tmgr test, which seems to have some ABI issues...
authorAugustin Degomme <augustin.degomme@unibas.ch>
Sun, 14 May 2017 19:51:07 +0000 (21:51 +0200)
committerAugustin Degomme <augustin.degomme@unibas.ch>
Sun, 14 May 2017 19:51:07 +0000 (21:51 +0200)
tools/cmake/Tests.cmake

index c432450..273bf7c 100644 (file)
@@ -94,8 +94,9 @@ 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_LIBRARY})
+  set(CMAKE_CXX_FLAGS "-D_GLIBCXX_USE_CXX11_ABI=0 ${CMAKE_CXX_FLAGS}")
   ADD_TEST(unit_tmgr ${CMAKE_BINARY_DIR}/unit_tmgr --build_info=yes)
   
 else()
   set(EXTRA_DIST       ${EXTRA_DIST}       src/surf/trace_mgr_test.cpp)
-endif()
\ No newline at end of file
+endif()