mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-05 10:20:14 +01:00
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
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue