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
@@ -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/";