CMake: raise the default C++ standard to cxx_std_14

PiperOrigin-RevId: 459761499
Change-Id: Ifb4b8b9f2dc598f3f4afc66a9efc403e001e0262
This commit is contained in:
Derek Mauro 2022-07-08 08:21:06 -07:00 committed by Copybara-Service
parent e009c3d3dc
commit 4556086674

View File

@ -189,7 +189,7 @@ function(cxx_library_with_type name type cxx_flags)
endif()
if (NOT "${CMAKE_VERSION}" VERSION_LESS "3.8")
target_compile_features(${name} PUBLIC cxx_std_11)
target_compile_features(${name} PUBLIC cxx_std_14)
endif()
endfunction()