~ruther/guix-local

e78fd4ca636a19bc286747f8d91bda22cd8f08fd — Andreas Enge 12 years ago 6eac909
guix: Make cmake build system aware of usual paths.

*  guix/build/cmake-build-system.scm (configure): Set CMAKE_LIBRARY_PATH to
     LIBRARY_PATH and CMAKE_INCLUDE_PATH to CPATH.
1 files changed, 2 insertions(+), 0 deletions(-)

M guix/build/cmake-build-system.scm
M guix/build/cmake-build-system.scm => guix/build/cmake-build-system.scm +2 -0
@@ 38,6 38,8 @@
    (if (file-exists? "CMakeLists.txt")
        (let ((args `(,(string-append "-DCMAKE_INSTALL_PREFIX=" out)
                      ,@configure-flags)))
          (setenv "CMAKE_LIBRARY_PATH" (getenv "LIBRARY_PATH"))
          (setenv "CMAKE_INCLUDE_PATH" (getenv "CPATH"))
          (format #t "running 'cmake' with arguments ~s~%" args)
          (zero? (apply system* "cmake" args)))
        (error "no CMakeLists.txt found"))))