Merge pull request #291243 from simonhollingshead/s2geometry-cpp14

s2geometry: Build with C++14 instead of C++11.
This commit is contained in:
a-n-n-a-l-e-e 2024-03-09 19:19:09 -08:00 committed by GitHub
commit b423275ce9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -22,6 +22,12 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ openssl gtest ];
# Default of C++11 is too low for gtest.
# In newer versions of s2geometry this can be done with cmakeFlags.
postPatch = ''
substituteInPlace CMakeLists.txt --replace "CMAKE_CXX_STANDARD 11" "CMAKE_CXX_STANDARD 14"
'';
meta = with lib; {
description = "Computational geometry and spatial indexing on the sphere";
homepage = "http://s2geometry.io/";