liblas: fix build with boost 1.86

Disable setting of C++98 standard which was dropped in boost 1.84.0.

Co-authored-by: Reno Dakota <paparodeo@proton.me
This commit is contained in:
Ivan Mincik
2024-12-31 10:18:52 +01:00
co-authored by Reno Dakota <paparodeo@proton.me
parent 587b0e8f9e
commit aaffc2cce5
+6
View File
@@ -45,6 +45,12 @@ stdenv.mkDerivation rec {
})
];
# Disable setting of C++98 standard which was dropped in boost 1.84.0
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail 'set(CMAKE_CXX_FLAGS "''${CMAKE_CXX_FLAGS} -std=c++98 -ansi")' '#'
'';
nativeBuildInputs = [ cmake ] ++ lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames;
buildInputs = [
boost