From fa3389ed23008dab9e08f1f9703ebb5bd17d23a7 Mon Sep 17 00:00:00 2001 From: James Turner Date: Mon, 3 Jan 2011 09:48:31 +0000 Subject: [PATCH] Better MSVC Boost serialization fix from Olaf --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.39.5