Skip to content

Commit

Permalink
Build/CMake: Use BOOST_NO_SCOPED_ENUMS if Boost version is less than …
Browse files Browse the repository at this point in the history
  • Loading branch information
DDuarte committed Nov 11, 2014
1 parent 5b8b310 commit 1034b4d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmake/macros/ConfigureBoost.cmake
Expand Up @@ -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)
Expand Down

0 comments on commit 1034b4d

Please sign in to comment.