Skip to content
Snippets Groups Projects
Commit e78fd4ca authored by Andreas Enge's avatar Andreas Enge
Browse files

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.
parent 6eac909b
No related branches found
No related tags found
No related merge requests found
...@@ -38,6 +38,8 @@ (define* (configure #:key outputs (configure-flags '()) ...@@ -38,6 +38,8 @@ (define* (configure #:key outputs (configure-flags '())
(if (file-exists? "CMakeLists.txt") (if (file-exists? "CMakeLists.txt")
(let ((args `(,(string-append "-DCMAKE_INSTALL_PREFIX=" out) (let ((args `(,(string-append "-DCMAKE_INSTALL_PREFIX=" out)
,@configure-flags))) ,@configure-flags)))
(setenv "CMAKE_LIBRARY_PATH" (getenv "LIBRARY_PATH"))
(setenv "CMAKE_INCLUDE_PATH" (getenv "CPATH"))
(format #t "running 'cmake' with arguments ~s~%" args) (format #t "running 'cmake' with arguments ~s~%" args)
(zero? (apply system* "cmake" args))) (zero? (apply system* "cmake" args)))
(error "no CMakeLists.txt found")))) (error "no CMakeLists.txt found"))))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment