cmake: use -std=c++11 instead of -std=gnu+11

Matches autotools behavior. The m4_if logic was misread...
This commit is contained in:
Peter Wu 2016-03-16 14:52:42 +01:00
parent f8a9a21428
commit f34971774b
1 changed files with 1 additions and 1 deletions

View File

@ -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})