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.
This commit is contained in:
parent
a1635de0ce
commit
546bee4002
|
@ -116,7 +116,8 @@
|
||||||
;; Help cmake's bootstrap process to find system libraries
|
;; Help cmake's bootstrap process to find system libraries
|
||||||
(begin
|
(begin
|
||||||
(setenv "CMAKE_LIBRARY_PATH" (getenv "LIBRARY_PATH"))
|
(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)))
|
#t)))
|
||||||
(replace 'configure
|
(replace 'configure
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
|
Loading…
Reference in New Issue