From 4833890a9dc627e62ed36ea70e59fa433b20fc12 Mon Sep 17 00:00:00 2001 From: "Maintenance team (INV)" Date: Wed, 13 Jan 2016 21:08:38 +0300 Subject: [PATCH] Synchronize adm files --- cmake_files/FindSalomeMPI.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake_files/FindSalomeMPI.cmake b/cmake_files/FindSalomeMPI.cmake index 9eee1cf0b..d9e6ec1c5 100644 --- a/cmake_files/FindSalomeMPI.cmake +++ b/cmake_files/FindSalomeMPI.cmake @@ -35,7 +35,8 @@ IF(MPI_FOUND) # otherwise take ours. include(CheckSymbolExists) SET(CMAKE_REQUIRED_LIBRARIES ${MPI_LIBRARIES}) - CHECK_SYMBOL_EXISTS(MPI_Publish_name ${MPI_C_INCLUDE_PATH}/mpi.h MPI2_IS_OK) + SET(CMAKE_REQUIRED_INCLUDES ${MPI_C_INCLUDE_PATH}) + CHECK_SYMBOL_EXISTS(MPI_Publish_name mpi.h MPI2_IS_OK) SET(MPI_DEFINITIONS "${MPI_CXX_COMPILE_FLAGS}") IF(MPI2_IS_OK) MESSAGE(STATUS "Your mpi implementation is compatible with mpi2 ... adding -DHAVE_MPI2") -- 2.39.2