make boost::iostreams optional (#2440)

* make iostreams optional

* make this work when iostreams is being used
This commit is contained in:
Brian Kelley
2019-05-09 11:29:02 -04:00
committed by Greg Landrum
parent 61d9e5195d
commit 17c6d38fd3
8 changed files with 135 additions and 118 deletions

View File

@@ -37,7 +37,8 @@ foreach(swigRDKitLib ${swigRDKitLibList})
endforeach()
set(swigRDKitLibs "${swigRDKitLibs}${Boost_SERIALIZATION_LIBRARY};")
if(RDK_USE_BOOST_IOSTREAMS)
ADD_DEFINITIONS("-DRDK_USE_BOOST_IOSTREAMS")
if(WIN32)
find_package(Boost 1.56.0 COMPONENTS system iostreams REQUIRED)
set(swigRDKitLibs "${swigRDKitLibs}${Boost_IOSTREAMS_LIBRARY};${Boost_SYSTEM_LIBRARY};")
@@ -50,6 +51,7 @@ else()
find_package(Boost 1.56.0 COMPONENTS system iostreams REQUIRED)
set(swigRDKitLibs "${swigRDKitLibs}${Boost_IOSTREAMS_LIBRARY};${Boost_SYSTEM_LIBRARY};")
endif()
endif(RDK_USE_BOOST_IOSTREAMS)