X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/721f772404050467d44326bf520ff0a315bd079e..2c89244eb0c2a35bc594e9af457d4a03ed0db184:/tools/cmake/MakeLib.cmake diff --git a/tools/cmake/MakeLib.cmake b/tools/cmake/MakeLib.cmake index ba435a6ce7..b29b5921d7 100644 --- a/tools/cmake/MakeLib.cmake +++ b/tools/cmake/MakeLib.cmake @@ -27,8 +27,6 @@ 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 @@ -62,7 +60,7 @@ if (HAVE_BOOST_ADDR2LINE_BACKTRACE) endif() if(CMAKE_USE_PTHREADS_INIT) - set(SIMGRID_DEP "${SIMGRID_DEP} ${CMAKE_THREAD_LIBS_INIT}") + target_link_libraries(simgrid ${CMAKE_THREAD_LIBS_INIT}) endif() if(SIMGRID_HAVE_LUA) @@ -135,6 +133,9 @@ if(enable_smpi) if ("${CMAKE_SYSTEM_VERSION}" MATCHES "12") set(SIMGRID_DEP "${SIMGRID_DEP} -lpgmath") endif() + if ("${CMAKE_SYSTEM_VERSION}" MATCHES "12\.1") + set(SIMGRID_DEP "${SIMGRID_DEP} -lomp") + endif() endif() endif() endif() @@ -167,7 +168,7 @@ endif() mark_as_advanced(GCCLIBATOMIC_LIBRARY) if(enable_model-checking AND (NOT LINKER_VERSION VERSION_LESS "2.30")) - set(SIMGRID_DEP "${SIMGRID_DEP} -Wl,-znoseparate-code") + set(SIMGRID_DEP "${SIMGRID_DEP} -Wl,-znorelro -Wl,-znoseparate-code") endif() target_link_libraries(simgrid ${SIMGRID_DEP})