Skip to content

Commit 6591a62

Browse files
authored
shark: fix build with boost187 (#379790)
2 parents 248f25a + 1c699b8 commit 6591a62

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkgs/by-name/sh/shark/package.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ stdenv.mkDerivation (finalAttrs: {
2323
# c.f https://github.com/Shark-ML/Shark/commit/221c1f2e8abfffadbf3c5ef7cf324bc6dc9b4315
2424
patches = [ ./shark-2-ext-num-literals-all.diff ];
2525

26+
# Remove explicitly setting C++11, because boost::math headers need C++14 since Boost187.
27+
postPatch = ''
28+
sed -i '/CXX_STANDARD/d' src/CMakeLists.txt
29+
'';
30+
2631
# https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/-/blob/develop/SuperBuild/CMake/External_shark.cmake?ref_type=heads
2732
cmakeFlags = [
2833
"-DBUILD_SHARED_LIBS=ON"

0 commit comments

Comments
 (0)