diff options
author | DDuarte <dnpd.dd@gmail.com> | 2014-11-11 18:24:21 +0000 |
---|---|---|
committer | DDuarte <dnpd.dd@gmail.com> | 2014-11-11 18:26:25 +0000 |
commit | 1034b4d460d3a931dfa14a64194f0176cba73bd7 (patch) | |
tree | 806ead00871f7655015f63adf92460358f9a3061 | |
parent | 5b8b310becc4fd640252fa9c7abbcfd4a4a700a2 (diff) |
Build/CMake: Use BOOST_NO_SCOPED_ENUMS if Boost version is less than 1.51
http://www.boost.org/doc/libs/1_57_0/libs/config/doc/html/boost_config/boost_macro_reference.html#boost_config.boost_macro_reference.boost_deprecated_macros
-rw-r--r-- | cmake/macros/ConfigureBoost.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake/macros/ConfigureBoost.cmake b/cmake/macros/ConfigureBoost.cmake index a1f00126f1d..8876a530afc 100644 --- a/cmake/macros/ConfigureBoost.cmake +++ b/cmake/macros/ConfigureBoost.cmake @@ -48,7 +48,11 @@ unset(CMAKE_REQUIRED_LIBRARIES CACHE) unset(CMAKE_REQUIRED_FLAGS CACHE)
if (NOT boost_filesystem_copy_links_without_NO_SCOPED_ENUM)
- add_definitions(-DBOOST_NO_CXX11_SCOPED_ENUMS)
+ if (Boost_VERSION LESS 105100) # 1.51
+ add_definitions(-DBOOST_NO_SCOPED_ENUMS)
+ else()
+ add_definitions(-DBOOST_NO_CXX11_SCOPED_ENUMS)
+ endif()
endif()
if(Boost_FOUND)
|