CMake: Enable projects to set the C++ version (#10464)
This change enables projects that consume protobuf via `FetchContent_MakeAvailable()` to set the C++ version to be used. This is necessary, as linking code compiled for different C++ standards is asking for trouble (and will simply not work in some cases). Check that any version that might be set in `CMAKE_CXX_STANDARD` is new enough (C++14 or later). On Cygwin, check if any `-std=gnu++XX` has already been set. In all cases, default to C++14.pull/10519/head
parent
f8be28167c
commit
4efbcc4460
1 changed files with 16 additions and 4 deletions
Loading…
Reference in new issue