diff options
author | Don Bright <hugh.m.bright@gmail.com> | 2012-01-13 00:35:34 (GMT) |
---|---|---|
committer | Don Bright <hugh.m.bright@gmail.com> | 2012-01-13 00:35:34 (GMT) |
commit | 1cec18d9c06a3e3f86da2353865038b0aec39928 (patch) | |
tree | b5db033dcf90a993b2ff7e44fa99715766812c35 | |
parent | de4d1e4b85ca13d17e9c722ea34cb0d636406272 (diff) |
Require Boost 1.44, and set BOOST_FILESYSTEM_VERSION=3 on .44 and .45
-rw-r--r-- | tests/CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 4285fbc..3b379d6 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -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}) |