Skip to content

Commit

Permalink
liblas: fix build with boost 1.86
Browse files Browse the repository at this point in the history
Disable setting of C++98 standard which was dropped in boost 1.84.0.

Co-authored-by: Reno Dakota <[email protected]
  • Loading branch information
imincik committed Dec 31, 2024
1 parent 587b0e8 commit aaffc2c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkgs/by-name/li/libLAS/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aaffc2c

Please sign in to comment.