mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-06 22:39:55 +08:00
make boost::iostreams optional (#2440)
* make iostreams optional * make this work when iostreams is being used
This commit is contained in:
committed by
Greg Landrum
parent
61d9e5195d
commit
17c6d38fd3
@@ -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)
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user