mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-29 08:38:18 +03:00
Merge pull request #291243 from simonhollingshead/s2geometry-cpp14
s2geometry: Build with C++14 instead of C++11.
This commit is contained in:
commit
b423275ce9
@ -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/";
|
||||
|
Loading…
Reference in New Issue
Block a user