Require Boost 1.44, and set BOOST_FILESYSTEM_VERSION=3 on .44 and .45

felipesanches-svg
Don Bright 2012-01-12 18:35:34 -06:00
parent de4d1e4b85
commit 1cec18d9c0
1 changed files with 4 additions and 1 deletions

View File

@ -125,7 +125,10 @@ if (NOT $ENV{BOOSTDIR} STREQUAL "")
message(STATUS "BOOST_ROOT: " ${BOOST_ROOT})
endif()
find_package( Boost 1.35.0 COMPONENTS thread program_options filesystem system regex REQUIRED)
find_package( Boost 1.44.0 COMPONENTS thread program_options filesystem system regex REQUIRED)
if ( ${Boost_VERSION} VERSION_LESS "104601" )
add_definitions( -DBOOST_FILESYSTEM_VERSION=3 )
endif()
message(STATUS "Boost includes found: " ${Boost_INCLUDE_DIRS})
message(STATUS "Boost libraries found:")
foreach(boostlib ${Boost_LIBRARIES})