From 1fa40d93451ee6f20012d6c96b0d4f909f578101 Mon Sep 17 00:00:00 2001 From: Janus Troelsen Date: Mon, 17 Jul 2017 12:04:15 +0200 Subject: [PATCH] Allow first HDF5, MPI checks to fail (not REQUIRED) --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e29c9dfd9c..dee92334c9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() @@ -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})