From be48e00472e7795b62fc97222d6abbcdf514f882 Mon Sep 17 00:00:00 2001 From: Eduard Valeyev Date: Tue, 19 Nov 2024 17:22:16 -0500 Subject: [PATCH] [cmake] if TTG_PARSEC_USE_BOOST_SERIALIZATION=ON but boost found make ttg-parsec only use madness serialization --- ttg/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ttg/CMakeLists.txt b/ttg/CMakeLists.txt index 4f2dc5daf..27cb08526 100644 --- a/ttg/CMakeLists.txt +++ b/ttg/CMakeLists.txt @@ -248,8 +248,10 @@ if (TARGET PaRSEC::parsec) # parsec depends on TTG's serialization layer since it does not provide its own if (TTG_PARSEC_USE_BOOST_SERIALIZATION AND TARGET ttg-serialization-boost) list(APPEND ttg-parsec-deps ttg-serialization-boost) + elseif(TARGET ttg-serialization-madness) + list(APPEND ttg-parsec-deps ttg-serialization-madness) else() - list(APPEND ttg-parsec-deps ttg-serialization) + message(WARNING "missing full-featured serialization support for ttg-parsec: either TTG_PARSEC_USE_BOOST_SERIALIZATION=OFF or Boost not found, and MADNESS not found") endif() add_ttg_library(ttg-parsec "${ttg-parsec-headers}" PUBLIC_HEADER "${ttg-parsec-headers}"