Fix OpenMPI detection
pkg_search_module lets us know if ompi-cxx was found. MpidotH is never used.
This commit is contained in:
committed by
Yorik van Havre
parent
0fe0f2a31f
commit
a2aab9d17f
@@ -100,9 +100,8 @@ macro(SetupSalomeSMESH)
|
||||
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)
|
||||
if(NOT MpidotH)
|
||||
message( WARNING "mpi.h was not found. Check for error above.")
|
||||
if(NOT OPENMPI_FOUND)
|
||||
message( WARNING "ompi-cxx was not found. Check for error above.")
|
||||
endif()
|
||||
endif()
|
||||
set(SMESH_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/src/3rdParty/salomesmesh/inc)
|
||||
|
||||
Reference in New Issue
Block a user