From f34971774b26ee3b707954c64ee2b822005c98da Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Wed, 16 Mar 2016 14:52:42 +0100 Subject: [PATCH] cmake: use -std=c++11 instead of -std=gnu+11 Matches autotools behavior. The m4_if logic was misread... --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 83692e9f..a9dd0385 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -126,7 +126,7 @@ else() endif() include(ExtractValidFlags) -foreach(_cxx1x_flag -std=gnu++11 -std=gnu++0x) +foreach(_cxx1x_flag -std=c++11 -std=c++0x) extract_valid_cxx_flags(_cxx1x_flag_supported ${_cxx1x_flag}) if(_cxx1x_flag_supported) set(CXX1XCXXFLAGS ${_cxx1x_flag})