Patch for improved Boost support for VS2008 and below.

This commit is contained in:
David Williams
2010-12-02 20:18:19 +00:00
parent 87a526bb46
commit 3752dda53f
2 changed files with 20 additions and 11 deletions

View File

@ -24,6 +24,13 @@ IF(WIN32)
#SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
ENDIF(WIN32)
if(MSVC AND (MSVC_VERSION LESS 1600))
# Require boost for older (pre-vc2010) Visual Studio compilers
# See library/include/polyvoximpl/TypeDef.h
find_package(Boost REQUIRED)
include_directories(${Boost_INCLUDE_DIRS})
endif()
IF(CMAKE_COMPILER_IS_GNUCXX) #Maybe "OR MINGW"
ADD_DEFINITIONS(-std=c++0x) #Enable C++0x mode
ENDIF()