From 43810c74ce623766990769d3080da7800df1779b Mon Sep 17 00:00:00 2001 From: Alexander Date: Wed, 10 Apr 2019 22:36:54 -0400 Subject: [PATCH] Do not build params with HDF5 dependence if alps-hdf5 is not built --- params/CMakeLists.txt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/params/CMakeLists.txt b/params/CMakeLists.txt index 7ef19cc71..03236d6a8 100644 --- a/params/CMakeLists.txt +++ b/params/CMakeLists.txt @@ -28,7 +28,9 @@ endif() add_this_package(params dict_value dictionary iniparser_interface EXTRA $) add_boost() -add_hdf5() +if (ALPS_HAVE_ALPS_HDF5) + add_hdf5() +endif() add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/../common/deps/iniparser" "./iniparser") if (ALPS_BUILD_SHARED OR ALPS_BUILD_PIC) @@ -39,7 +41,12 @@ target_include_directories(${PROJECT_NAME} PRIVATE $) -add_alps_package(alps-utilities alps-hdf5) +if (ALPS_HAVE_ALPS_HDF5) + add_alps_package(alps-utilities alps-hdf5) +else() + message("NOTE: module params will be built without HDF5 support (alps-hdf5 is disabled)") + add_alps_package(alps-utilities) +endif() add_testing()