cmake: use -std=c++11 instead of -std=gnu+11
Matches autotools behavior. The m4_if logic was misread...
This commit is contained in:
parent
f8a9a21428
commit
f34971774b
|
@ -126,7 +126,7 @@ else()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include(ExtractValidFlags)
|
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})
|
extract_valid_cxx_flags(_cxx1x_flag_supported ${_cxx1x_flag})
|
||||||
if(_cxx1x_flag_supported)
|
if(_cxx1x_flag_supported)
|
||||||
set(CXX1XCXXFLAGS ${_cxx1x_flag})
|
set(CXX1XCXXFLAGS ${_cxx1x_flag})
|
||||||
|
|
Loading…
Reference in New Issue