Skip to content

Commit

Permalink
cmake: use -std=c++11 instead of -std=gnu+11
Browse files Browse the repository at this point in the history
Matches autotools behavior. The m4_if logic was misread...
  • Loading branch information
Lekensteyn committed Mar 16, 2016
1 parent f8a9a21 commit f349717
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit f349717

Please sign in to comment.