)
ADD_SUBDIRECTORY(${BOOST_FOLDER}/libs/serialization/src)
- ADD_SUBDIRECTORY(${BOOST_FOLDER}/libs/iostreams/src)
+
+ IF(DEAL_II_WITH_ZLIB)
+ ADD_SUBDIRECTORY(${BOOST_FOLDER}/libs/iostreams/src)
+ ELSE()
+ MESSAGE(STATUS "BOOST::Iostreams will not be available because zlib or its header files could not be found")
+ ENDIF()
IF(DEAL_II_WITH_THREADS AND NOT DEAL_II_WITH_CXX11)
ADD_SUBDIRECTORY(${BOOST_FOLDER}/libs/thread/src)
SET(src_boost_iostreams
file_descriptor.cpp
- gzip.cpp
+ gzip.cpp
mapped_file.cpp
- )
-
-IF(DEAL_II_WITH_ZLIB)
- SET(src_boost_iostreams
- ${src_boost_iostreams}
- zlib.cpp
- )
-ELSE()
- MESSAGE(STATUS "BOOST::Iostreams will not support gzipped streams because libz or its header files could not be found")
-ENDIF()
+ zlib.cpp
+ )
IF(DEALII_WITH_BZIP2)
- SET(src_boost_iostreams
- ${src_boost_iostreams}
- bzip2.cpp
- )
+ LIST(APPEND src_boost_iostreams bzip2.cpp)
ELSE()
MESSAGE(STATUS "BOOST::Iostreams will not support bz2'ed streams because libbz2 or its header files could not be found")
ENDIF()
-
DEAL_II_ADD_LIBRARY(obj_boost_iostreams OBJECT ${src_boost_iostreams})
-
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams