Skip to content

Commit 8a2ec53

Browse files
committed
More fun with Boost serialization
Don't even bother trying to create a target if !TTG_PARSEC_USE_BOOST_SERIALIZATION Signed-off-by: Joseph Schuchart <joseph.schuchart@stonybrook.edu>
1 parent 87d0055 commit 8a2ec53

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ttg/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ if (TARGET MADworld)
171171
list(APPEND ttg-serialization-deps MADworld)
172172
list(APPEND ttg-serialization-compile-definitions TTG_SERIALIZATION_SUPPORTS_MADNESS=1)
173173
endif(TARGET MADworld)
174-
if (TARGET Boost::serialization)
174+
if (TTG_PARSEC_USE_BOOST_SERIALIZATION AND TARGET Boost::serialization)
175175
list(APPEND ttg-serialization-deps Boost::serialization)
176176
list(APPEND ttg-serialization-boost-deps Boost::serialization)
177177
if (TARGET Boost::iostreams) # using modularized Boost?
@@ -195,13 +195,13 @@ if (TARGET MADworld)
195195
COMPILE_DEFINITIONS "TTG_SERIALIZATION_SUPPORTS_MADNESS=1")
196196
endif(TARGET MADworld)
197197
# make boost-only serialization target
198-
if (TARGET Boost::serialization)
198+
if (TTG_PARSEC_USE_BOOST_SERIALIZATION AND TARGET Boost::serialization)
199199
add_ttg_library(ttg-serialization-boost
200200
"${ttg-serialization-sources}"
201201
PUBLIC_HEADER "${ttg-serialization-headers}"
202202
LINK_LIBRARIES "${ttg-serialization-boost-deps}"
203203
COMPILE_DEFINITIONS "TTG_SERIALIZATION_SUPPORTS_BOOST=1")
204-
endif(TARGET Boost::serialization)
204+
endif(TTG_PARSEC_USE_BOOST_SERIALIZATION AND TARGET Boost::serialization)
205205

206206
#########################
207207
####### MADNESS-specific

0 commit comments

Comments
 (0)