From 08870dc3bc2a82e8df0b9fb1487bef5769127648 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 18 Jul 2023 13:10:51 +0200 Subject: [PATCH] gnu: insight-toolkit: Fix compilation. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously, code would be compiled with '-std=c++11', leading to compilation errors in VNL: vnl_bignum.cxx:738:37: error: ‘numeric_limits’ is not a member of ‘std’ * gnu/packages/image-processing.scm (insight-toolkit)[arguments]: Pass "-DCMAKE_CXX_STANDARD=17". --- gnu/packages/image-processing.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnu/packages/image-processing.scm b/gnu/packages/image-processing.scm index 3a846cbe25..d8a20c08aa 100644 --- a/gnu/packages/image-processing.scm +++ b/gnu/packages/image-processing.scm @@ -1288,7 +1288,8 @@ libraries designed for computer vision research and implementation.") ;; This prevents "GTest::GTest" from being added to the ITK_LIBRARIES ;; variable in the installed CMake files. This is necessary as other ;; packages using insight-toolkit could not be configured otherwise. - "-DGTEST_ROOT=gtest") + "-DGTEST_ROOT=gtest" + "-DCMAKE_CXX_STANDARD=17") #:phases (modify-phases %standard-phases