From 3d15e9e5bcd7cdad33f9832e4956f494c47e1937 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Tue, 14 Nov 2023 08:55:34 +0200 Subject: [PATCH] gnu: insight-toolkit-4.12: Fix building. * gnu/packages/image-processing.scm (insight-toolkit-4.12)[arguments]: Add a configure-flag to build with c++14. Change-Id: I5e7a0a3ed47e4e3f25611147f8e66c58a1bf8a8c --- gnu/packages/image-processing.scm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gnu/packages/image-processing.scm b/gnu/packages/image-processing.scm index 9b633d5d63..36fee7e276 100644 --- a/gnu/packages/image-processing.scm +++ b/gnu/packages/image-processing.scm @@ -1412,7 +1412,12 @@ (define-public insight-toolkit-4.12 (uri (string-append "mirror://sourceforge/itk/itk/4.12/" "InsightToolkit-" version ".tar.xz")) (sha256 - (base32 "1qw9mxbh083siljygahl4gdfv91xvfd8hfl7ghwii19f60xrvn2w")))))) + (base32 "1qw9mxbh083siljygahl4gdfv91xvfd8hfl7ghwii19f60xrvn2w")))) + (arguments + (substitute-keyword-arguments (package-arguments insight-toolkit-4) + ((#:configure-flags cf #~'()) + ;; error: ISO C++17 does not allow dynamic exception specifications + #~(cons* "-DCMAKE_CXX_FLAGS=-std=c++14" #$cf)))))) (define-public itk-snap (package