diff --git a/CMakeLists.txt b/CMakeLists.txt index 3ecfe23a6..1db9bf33e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -717,7 +717,7 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") add_compile_options(${OPENMPI_CFLAGS}) link_directories(${OPENMPI_LIBRARY_DIRS}) link_libraries(${OPENMPI_LIBRARIES}) - find_file(MpidotH mpi.h PATHS ${OPENMPI_INCLUDE_DIRS} NO_DEFAULT_PATH) + find_file(MpidotH mpi.h PATHS ${OPENMPI_INCLUDE_DIRS} /usr/lib64/mpi/gcc/openmpi2/include NO_DEFAULT_PATH) if(NOT MpidotH) message( WARNING "mpi.h was not found. Check for error above.") endif()