guix-commits
[Top][All Lists]
Advanced

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

23/29: gnu: cmake: Try CPATH and C_INCLUDE_PATH when finding system libr


From: guix-commits
Subject: 23/29: gnu: cmake: Try CPATH and C_INCLUDE_PATH when finding system libraries.
Date: Sat, 9 Feb 2019 15:55:26 -0500 (EST)

mbakke pushed a commit to branch core-updates
in repository guix.

commit 546bee40023687e52aff457b3b487cd47d751548
Author: Marius Bakke <address@hidden>
Date:   Sat Oct 6 14:48:07 2018 +0200

    gnu: cmake: Try CPATH and C_INCLUDE_PATH when finding system libraries.
    
    * gnu/packages/cmake.scm (cmake)[arguments]: Try both CPATH and 
C_INCLUDE_PATH
    instead of just the latter.
---
 gnu/packages/cmake.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/cmake.scm b/gnu/packages/cmake.scm
index 7186cf9..5bd91b7 100644
--- a/gnu/packages/cmake.scm
+++ b/gnu/packages/cmake.scm
@@ -116,7 +116,8 @@
              ;; Help cmake's bootstrap process to find system libraries
              (begin
                (setenv "CMAKE_LIBRARY_PATH" (getenv "LIBRARY_PATH"))
-               (setenv "CMAKE_INCLUDE_PATH" (getenv "C_INCLUDE_PATH"))
+               (setenv "CMAKE_INCLUDE_PATH" (or (getenv "CPATH")
+                                                (getenv "C_INCLUDE_PATH")))
                #t)))
          (replace 'configure
            (lambda* (#:key outputs #:allow-other-keys)



reply via email to

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