Browse Source

Don't use -std=c++11 with older Boost versions

C++11 mode will cause errors when using Boost < 1.48.
pull/1/head
Daniel Scharrer 14 years ago
parent
commit
84a4ef7cd8
  1. 6
      CMakeLists.txt

6
CMakeLists.txt

@ -55,7 +55,11 @@ list(APPEND LIBRARIES "${Boost_LIBRARIES}")
link_directories("${Boost_LIBRARY_DIRS}")
include_directories(SYSTEM "${Boost_INCLUDE_DIR}")
add_cxxflag("-std=c++11")
if(${Boost_VERSION} LESS 104800)
# Older Boost versions don't work with C++11
else()
add_cxxflag("-std=c++11")
endif()
add_cxxflag("-Wall")
add_cxxflag("-Wextra")

Loading…
Cancel
Save