From 1cec18d9c06a3e3f86da2353865038b0aec39928 Mon Sep 17 00:00:00 2001 From: Don Bright Date: Thu, 12 Jan 2012 18:35:34 -0600 Subject: [PATCH] Require Boost 1.44, and set BOOST_FILESYSTEM_VERSION=3 on .44 and .45 --- tests/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 4285fbc7..3b379d6f 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})