From: James Turner Date: Mon, 3 Jan 2011 09:48:31 +0000 (+0000) Subject: Better MSVC Boost serialization fix from Olaf X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fa3389ed23008dab9e08f1f9703ebb5bd17d23a7;p=simgear.git Better MSVC Boost serialization fix from Olaf --- diff --git a/CMakeLists.txt b/CMakeLists.txt index a592c8e9..8d8684ca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,6 +31,8 @@ if (MSVC_3RDPARTY_DIR) endif (MSVC_3RDPARTY_DIR) find_package(Boost REQUIRED) +set (BOOST_CXX_FLAGS "-DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION -DBOOST_BIMAP_DISABLE_SERIALIZATION") + find_package(ZLIB REQUIRED) find_package(Threads REQUIRED) @@ -91,7 +93,7 @@ if(WIN32) endif(WIN32) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${WARNING_FLAGS} ${MSVC_FLAGS}") -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${WARNING_FLAGS} ${MSVC_FLAGS}") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${WARNING_FLAGS} ${MSVC_FLAGS} ${BOOST_CXX_FLAGS}") include_directories(${PROJECT_SOURCE_DIR}) include_directories(${PROJECT_BINARY_DIR}/simgear)