diff options
-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}) |