aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorMarius Bakke <mbakke@fastmail.com>2018-10-06 14:48:07 +0200
committerMarius Bakke <mbakke@fastmail.com>2019-02-09 21:53:41 +0100
commit546bee40023687e52aff457b3b487cd47d751548 (patch)
tree2d1dbcb8b6ebfa604198b2d71981645957aa85ce /gnu/packages
parenta1635de0ce12979d74ba3796d460c01e58b198f3 (diff)
downloadpatches-546bee40023687e52aff457b3b487cd47d751548.tar
patches-546bee40023687e52aff457b3b487cd47d751548.tar.gz
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.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/cmake.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/packages/cmake.scm b/gnu/packages/cmake.scm
index 7186cf98df..5bd91b7bf5 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)