Mentions légales du service

Skip to content
Snippets Groups Projects
Commit c48c44ef authored by THIBAULT Samuel's avatar THIBAULT Samuel
Browse files

Add missing MPI variables in simulation mode

parent 3bac4828
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# of Tennessee Research Foundation. # of Tennessee Research Foundation.
# All rights reserved. # All rights reserved.
# @copyright (c) 2012-2014 Inria. All rights reserved. # @copyright (c) 2012-2014 Inria. All rights reserved.
# @copyright (c) 2012-2015 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria, Univ. Bordeaux. All rights reserved. # @copyright (c) 2012-2016 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria, Univ. Bordeaux. All rights reserved.
# #
### ###
# #
...@@ -543,6 +543,26 @@ if (MORSE_DISTRIB_DIR OR EXISTS "${CMAKE_SOURCE_DIR}/cmake_modules/") ...@@ -543,6 +543,26 @@ if (MORSE_DISTRIB_DIR OR EXISTS "${CMAKE_SOURCE_DIR}/cmake_modules/")
set(MPI_C_INCLUDE_PATH "${SIMGRID_INCLUDE_DIRS}") set(MPI_C_INCLUDE_PATH "${SIMGRID_INCLUDE_DIRS}")
list(APPEND MPI_C_INCLUDE_PATH "${SIMGRID_INCLUDE_DIRS}/smpi") list(APPEND MPI_C_INCLUDE_PATH "${SIMGRID_INCLUDE_DIRS}/smpi")
endif() endif()
if(NOT MPI_CXX_COMPILER)
set(MPI_CXX_COMPILER "${SIMGRID_DIR_FOUND}/bin/smpicxx")
endif()
if(NOT MPI_CXX_LIBRARIES)
set(MPI_CXX_LIBRARIES "${SIMGRID_LIBRARIES}")
endif()
if(NOT MPI_CXX_INCLUDE_PATH)
set(MPI_CXX_INCLUDE_PATH "${SIMGRID_INCLUDE_DIRS}")
list(APPEND MPI_CXX_INCLUDE_PATH "${SIMGRID_INCLUDE_DIRS}/smpi")
endif()
if(NOT MPI_Fortran_COMPILER)
set(MPI_Fortran_COMPILER "${SIMGRID_DIR_FOUND}/bin/smpicxx")
endif()
if(NOT MPI_Fortran_LIBRARIES)
set(MPI_Fortran_LIBRARIES "${SIMGRID_LIBRARIES}")
endif()
if(NOT MPI_Fortran_INCLUDE_PATH)
set(MPI_Fortran_INCLUDE_PATH "${SIMGRID_INCLUDE_DIRS}")
list(APPEND MPI_Fortran_INCLUDE_PATH "${SIMGRID_INCLUDE_DIRS}/smpi")
endif()
find_package(MPI REQUIRED) find_package(MPI REQUIRED)
if (MPI_C_FOUND) if (MPI_C_FOUND)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment