define BOOST_MULTI_INDEX_DISABLE_SERIALIZATION in CMakeLists.txt and configure.in. Also define BOOST_EXCEPTION_DISABLE to disable boost.exception

This commit is contained in:
Arvid Norberg 2009-01-07 01:58:43 +00:00
parent ab05011f1d
commit 42f428f776
3 changed files with 8 additions and 0 deletions

View File

@ -191,6 +191,8 @@ if (MSVC)
endif(MSVC)
add_definitions(-D_FILE_OFFSET_BITS=64)
add_definitions(-DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION)
add_definitions(-DBOOST_DISABLE_EXCEPTION)
if (tcmalloc)
target_link_libraries(torrent-rasterbar tcmalloc)

View File

@ -395,6 +395,7 @@ local usage-requirements =
<variant>debug:<define>TORRENT_DEBUG
<define>_FILE_OFFSET_BITS=64
<define>BOOST_MULTI_INDEX_DISABLE_SERIALIZATION
<define>BOOST_EXCEPTION_DISABLE
<conditional>@linking
<zlib>system:<library>zlib-target
# these compiler settings just makes the compiler standard conforming

View File

@ -413,6 +413,11 @@ if [[ "x$enable_shared" == "xyes" ]]; then
COMPILETIME_OPTIONS+="-DTORRENT_LINKING_SHARED "
fi
AC_DEFINE(BOOST_MULTI_INDEX_DISABLE_SERIALIZATION,,[Don't depend on boost.serialization headers])
COMPILETIME_OPTIONS+="-DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION "
AC_DEFINE(BOOST_EXCEPTION_DISABLE,,[We don't need boost.exception features])
COMPILETIME_OPTIONS+="-DBOOST_EXCEPTION_DISABLE "
dnl want some debugging symbols with that?
AC_ARG_ENABLE(
[debug],