[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/08: gnu: cmake: Try CPATH and C_INCLUDE_PATH when finding system libr
From: |
Marius Bakke |
Subject: |
07/08: gnu: cmake: Try CPATH and C_INCLUDE_PATH when finding system libraries. |
Date: |
Sat, 6 Oct 2018 12:59:46 -0400 (EDT) |
mbakke pushed a commit to branch wip-gcc7
in repository guix.
commit 0879390a879a106cb6883c77313b9d108d541a6f
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 5abf087..3f3f1c1 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)
- branch wip-gcc7 created (now f47d100), Marius Bakke, 2018/10/06
- 04/08: gnu: Remove duplicate linux-libre-headers package from bootstrap inputs., Marius Bakke, 2018/10/06
- 06/08: gnu: python: Fix FTBFS with GCC >= 6., Marius Bakke, 2018/10/06
- 07/08: gnu: cmake: Try CPATH and C_INCLUDE_PATH when finding system libraries.,
Marius Bakke <=
- 05/08: gnu: Use GCC 7 as the default compiler., Marius Bakke, 2018/10/06
- 02/08: gnu: libstdc++-boot0: Improve gcc-wrapper workaround., Marius Bakke, 2018/10/06
- 01/08: gnu: Remove gcc-for-libstdc++., Marius Bakke, 2018/10/06
- 08/08: gnu: cppunit: Update to 1.14.0., Marius Bakke, 2018/10/06
- 03/08: gnu: gcc-boot0: Improve gcc-wrapper workarounds., Marius Bakke, 2018/10/06