From c9a890840c51bcdb476debf2e5b30da71c486ec4 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Tue, 17 Jul 2018 11:03:14 +0200 Subject: [PATCH] install smpimain in /usr/lib/simgrid It's not meant to be used directly by the user --- CMakeLists.txt | 4 ++-- tools/cmake/MakeLib.cmake | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 958ba4f90e..58a6cf9971 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -636,7 +636,7 @@ if(NS3_LIBRARY_PATH) set(CMAKE_SMPI_COMMAND "${CMAKE_SMPI_COMMAND}:${NS3_LIBRARY_PATH}") endif() set(CMAKE_SMPI_COMMAND "${CMAKE_SMPI_COMMAND}:\${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}\"") -set(SMPIMAIN smpimain) +set(SMPIMAIN ${libdir}/simgrid/smpimain) configure_file(${CMAKE_HOME_DIRECTORY}/include/smpi/mpif.h.in ${CMAKE_BINARY_DIR}/include/smpi/mpif.h @ONLY) #configure mpif.f90 to build mpi.mod @@ -664,7 +664,7 @@ if(NS3_LIBRARY_PATH) set(CMAKE_SMPI_COMMAND "${CMAKE_SMPI_COMMAND}:${NS3_LIBRARY_PATH}") endif() set(CMAKE_SMPI_COMMAND "${CMAKE_SMPI_COMMAND}:\${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}\"") -set(SMPIMAIN ${CMAKE_BINARY_DIR}/bin/smpimain) +set(SMPIMAIN ${CMAKE_BINARY_DIR}/lib/simgrid/smpimain) foreach(script cc cxx ff f90 run) configure_file(${CMAKE_HOME_DIRECTORY}/src/smpi/smpi${script}.in ${CMAKE_BINARY_DIR}/smpi_script/bin/smpi${script} @ONLY) diff --git a/tools/cmake/MakeLib.cmake b/tools/cmake/MakeLib.cmake index 14bb922434..57292dd749 100644 --- a/tools/cmake/MakeLib.cmake +++ b/tools/cmake/MakeLib.cmake @@ -34,7 +34,7 @@ if(enable_model-checking) set_property(TARGET simgrid-mc APPEND PROPERTY INCLUDE_DIRECTORIES "${INTERNAL_INCLUDES}") install(TARGETS simgrid-mc # install that binary without breaking the rpath on Mac - RUNTIME DESTINATION bin/) + RUNTIME DESTINATION bin/) endif() @@ -91,9 +91,9 @@ if(enable_smpi) 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) + PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib/simgrid) install(TARGETS smpimain # install that binary without breaking the rpath on Mac - RUNTIME DESTINATION bin/) + RUNTIME DESTINATION lib/simgrid) endif() if(enable_smpi AND APPLE) -- 2.20.1