Skip to content

Commit

Permalink
Allow first HDF5, MPI checks to fail (not REQUIRED)
Browse files Browse the repository at this point in the history
  • Loading branch information
ysangkok authored and yorikvanhavre committed Jul 17, 2017
1 parent 3e017ce commit 1fa40d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Expand Up @@ -662,7 +662,7 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
find_package(HDF5 COMPONENTS NO_MODULE REQUIRED static)
else()
find_package(PkgConfig)
pkg_search_module(HDF5 REQUIRED hdf5-serial)
pkg_search_module(HDF5 hdf5-serial)
if(NOT HDF5_FOUND)
find_package(HDF5 REQUIRED)
else()
Expand All @@ -680,7 +680,7 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
endif()

# Med Fichier can require MPI
pkg_search_module(OPENMPI REQUIRED ompi-cxx)
pkg_search_module(OPENMPI ompi-cxx)
add_compile_options(${OPENMPI_CFLAGS})
link_directories(${OPENMPI_LIBRARY_DIRS})
link_libraries(${OPENMPI_LIBRARIES})
Expand Down

0 comments on commit 1fa40d9

Please sign in to comment.