]> git.mxchange.org Git - simgear.git/commitdiff
Better MSVC Boost serialization fix from Olaf
authorJames Turner <zakalawe@mac.com>
Mon, 3 Jan 2011 09:48:31 +0000 (09:48 +0000)
committerJames Turner <zakalawe@mac.com>
Mon, 3 Jan 2011 09:48:31 +0000 (09:48 +0000)
CMakeLists.txt

index a592c8e93a4cf711b03fc5a273532ae1071d4154..8d8684ca0d1a87d0ba94e62e282abe8016bb584d 100644 (file)
@@ -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)