gnu: cmake: Build an optimized executable.

* gnu/packages/cmake.scm (cmake-bootstrap)[arguments]: Pass
"-DCMAKE_BUILD_TYPE" in #:configure-flags.
This commit is contained in:
Marius Bakke 2020-01-25 12:50:57 +01:00
parent 8c81210ed0
commit fa8e0a5387
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -97,7 +97,11 @@ (define-public cmake-minimal
;; to --mandir and --docdir.
"--mandir=share/man"
,(string-append "--docdir=share/doc/cmake-"
(version-major+minor version))))
(version-major+minor version))
;; By default CMake is built without any optimizations. Use
;; the recommended Release target for a ~2.5x speedup.
"--" "-DCMAKE_BUILD_TYPE=Release"))
#:make-flags
(let ((skipped-tests
(list "BundleUtilities" ; This test fails on Guix.