From f0bf6b591ed5f9e562ea46fa408ff86f198faa11 Mon Sep 17 00:00:00 2001 From: Daniel Scharrer Date: Sun, 24 Jun 2012 11:41:50 +0200 Subject: [PATCH] Don't use -std=c++0x, only -std=c++11 or none --- CMakeLists.txt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e44515a..ce656bd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,11 +54,7 @@ list(APPEND LIBRARIES "${Boost_LIBRARIES}") link_directories("${Boost_LIBRARY_DIRS}") include_directories(SYSTEM "${Boost_INCLUDE_DIR}") -check_compiler_flag(CPP11_FLAG "-std=c++11") -if("${CPP11_FLAG}" STREQUAL "") - check_compiler_flag(CPP11_FLAG "-std=c++0x") -endif() -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CPP11_FLAG}") +add_cxxflag("-std=c++11") add_cxxflag("-Wall") add_cxxflag("-Wextra")