Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information