guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/05: gnu: insight-toolkit: Fix compilation.


From: guix-commits
Subject: 01/05: gnu: insight-toolkit: Fix compilation.
Date: Tue, 18 Jul 2023 08:07:21 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 08870dc3bc2a82e8df0b9fb1487bef5769127648
Author: Ludovic Courtès <ludovic.courtes@inria.fr>
AuthorDate: Tue Jul 18 13:10:51 2023 +0200

    gnu: insight-toolkit: Fix compilation.
    
    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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]