X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/51b60f41f037171a411e084cc07f276a800800f5..165f0d8397015d910184a9869d045037af0b2edc:/tools/cmake/MakeLib.cmake diff --git a/tools/cmake/MakeLib.cmake b/tools/cmake/MakeLib.cmake index 0d157fe851..4594264c5b 100644 --- a/tools/cmake/MakeLib.cmake +++ b/tools/cmake/MakeLib.cmake @@ -97,6 +97,15 @@ endif() # Compute the dependencies of SMPI ################################## + +if(enable_smpi) + set(SIMGRID_DEP "${SIMGRID_DEP} ${DL_LIBRARY}") # for privatization + add_executable(smpimain src/smpi/smpi_main.c) + target_link_libraries(smpimain simgrid) + set_target_properties(smpimain + PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) +endif() + if(enable_smpi AND APPLE) set(SIMGRID_DEP "${SIMGRID_DEP} -Wl,-U -Wl,_smpi_simulated_main") endif()