Set BOOST_FILESYSTEM_VERSION if compiling with boost > 1.50.0

This commit is contained in:
HanzZ 2013-02-23 10:57:40 +01:00
parent ba9a34731c
commit 6a98ef2a8d

View file

@ -97,7 +97,12 @@ else(WIN32)
endif()
endif(WIN32)
message( STATUS "Found Boost: ${Boost_LIBRARIES}, ${Boost_INCLUDE_DIR}")
message( STATUS "Found Boost: ${Boost_VERSION}, ${Boost_LIBRARIES}, ${Boost_INCLUDE_DIR}")
if (${Boost_VERSION} GREATER 104999)
message( STATUS "Using BOOST_FILESYSTEM_VERSION=3")
add_definitions(BOOST_FILESYSTEM_VERSION 3)
endif()
# FIND POPT
if (NOT WIN32)