From eee2e00d22f51bd2c58a02ddd2ed22d7054d6d7d Mon Sep 17 00:00:00 2001 From: Chuck Atkins <chuck.atkins@kitware.com> Date: Thu, 1 Jun 2017 13:41:44 -0400 Subject: [PATCH] CMake: fix some compatibility issues with HDF5 vars --- source/adios2/CMakeLists.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/source/adios2/CMakeLists.txt b/source/adios2/CMakeLists.txt index 2d19f4076..463ae0c7e 100644 --- a/source/adios2/CMakeLists.txt +++ b/source/adios2/CMakeLists.txt @@ -102,10 +102,11 @@ if(ADIOS_USE_HDF5) "of ADIOS is being built, which requires a sequential HDF5." ) endif() - message("DEBUG: HDF5_INCLUDE_DIRS: ${HDF5_INCLUDE_DIRS}") - message("DEBUG: HDF5_C_INCLUDE_DIRS: ${HDF5_C_INCLUDE_DIRS}") - message("DEBUG: HDF5_C_LIBRARIES: ${HDF5_C_LIBRARIES}") - target_include_directories(adios2 PRIVATE ${HDF5_C_INCLUDE_DIRS}) + if(HDF5_C_INCLUDE_DIRS) + target_include_directories(adios2 PRIVATE ${HDF5_C_INCLUDE_DIRS}) + else() + target_include_directories(adios2 PRIVATE ${HDF5_INCLUDE_DIRS}) + endif() target_sources(adios2 PRIVATE engine/hdf5/HDF5ReaderP.cpp engine/hdf5/HDF5WriterP.cpp -- GitLab