Merge pull request #290910 from simonhollingshead/lucenepp-cpp14

lucenepp: Build with C++14 instead of C++11.
This commit is contained in:
Luke Granger-Brown 2024-02-27 12:54:16 +00:00 committed by GitHub
commit ea136432be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -29,9 +29,12 @@ stdenv.mkDerivation rec {
})
];
# Don't use the built in gtest - but the nixpkgs one requires C++14.
postPatch = ''
substituteInPlace src/test/CMakeLists.txt \
--replace "add_subdirectory(gtest)" ""
substituteInPlace CMakeLists.txt \
--replace "set(CMAKE_CXX_STANDARD 11)" "set(CMAKE_CXX_STANDARD 14)"
'';
doCheck = true;