X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/81c571783673c794dfd12682a5b9db490cff2a99..721f772404050467d44326bf520ff0a315bd079e:/tools/cmake/MakeLib.cmake diff --git a/tools/cmake/MakeLib.cmake b/tools/cmake/MakeLib.cmake index ce355d31dd..ba435a6ce7 100644 --- a/tools/cmake/MakeLib.cmake +++ b/tools/cmake/MakeLib.cmake @@ -27,6 +27,8 @@ set_property(TARGET simgrid add_dependencies(simgrid maintainer_files) if(enable_model-checking) + set_property(TARGET simgrid PROPERTY CXX_STANDARD 14) + add_executable(simgrid-mc ${MC_SIMGRID_MC_SRC}) target_link_libraries(simgrid-mc simgrid) set_target_properties(simgrid-mc @@ -35,19 +37,28 @@ if(enable_model-checking) APPEND PROPERTY INCLUDE_DIRECTORIES "${INTERNAL_INCLUDES}") install(TARGETS simgrid-mc # install that binary without breaking the rpath on Mac RUNTIME DESTINATION bin/) + add_dependencies(tests simgrid-mc) endif() # Compute the dependencies of SimGrid ##################################### # search for dlopen -if("${CMAKE_SYSTEM_NAME}" MATCHES "kFreeBSD|Linux") +if("${CMAKE_SYSTEM_NAME}" MATCHES "kFreeBSD|Linux|SunOS") find_library(DL_LIBRARY dl) endif() mark_as_advanced(DL_LIBRARY) if (HAVE_BOOST_CONTEXTS) - set(SIMGRID_DEP "${SIMGRID_DEP} ${Boost_CONTEXT_LIBRARY}") + target_link_libraries(simgrid ${Boost_CONTEXT_LIBRARY}) +endif() + +if (HAVE_BOOST_STACKTRACE_BACKTRACE) + target_link_libraries(simgrid ${Boost_STACKTRACE_BACKTRACE_LIBRARY}) +endif() + +if (HAVE_BOOST_ADDR2LINE_BACKTRACE) + target_link_libraries(simgrid ${Boost_STACKTRACE_ADDR2LINE_LIBRARY}) endif() if(CMAKE_USE_PTHREADS_INIT) @@ -105,7 +116,7 @@ if(enable_smpi) add_executable(smpireplaymain src/smpi/smpi_replay_main.cpp) target_compile_options(smpireplaymain PRIVATE -fpic) - target_link_libraries(smpireplaymain simgrid -shared) + target_link_libraries(smpireplaymain simgrid -fpic -shared) set_target_properties(smpireplaymain PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib/simgrid) install(TARGETS smpireplaymain # install that binary without breaking the rpath on Mac