diff --git a/CMakeLists.txt b/CMakeLists.txt index c709d40..c6ac65f 100644 --- a/CMakeLists.txt +++ b/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")