liblas: fix build with boost 1.86 (#369334)

This commit is contained in:
Ivan Mincik
2024-12-31 14:46:46 +00:00
committed by GitHub
+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