summary refs log tree commit diff
diff options
context:
space:
mode:
authorMarius Bakke <mbakke@fastmail.com>2020-01-25 12:50:57 +0100
committerMarius Bakke <mbakke@fastmail.com>2020-01-25 12:50:57 +0100
commitfa8e0a5387419ba1edd17722329cdb27b1371ccf (patch)
tree1c072f0313bda3886d9dae9fc0815958251dc25e
parent8c81210ed0422522627f87f43f404e38c8bea8cf (diff)
downloadguix-fa8e0a5387419ba1edd17722329cdb27b1371ccf.tar.gz
gnu: cmake: Build an optimized executable.
* gnu/packages/cmake.scm (cmake-bootstrap)[arguments]: Pass
"-DCMAKE_BUILD_TYPE" in #:configure-flags.
-rw-r--r--gnu/packages/cmake.scm6
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/packages/cmake.scm b/gnu/packages/cmake.scm
index cf542f12e4..913317b25f 100644
--- a/gnu/packages/cmake.scm
+++ b/gnu/packages/cmake.scm
@@ -97,7 +97,11 @@
                ;; 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.