With reference to this message:

https://cygwin.com/pipermail/cygwin-apps/2026-April/044908.html

I would like to suggest these changes to the maintainer of the CMake package.
Attached to this email you can find the patch.

Inside cmake.cygport, the version number increased from 4.2.1 to 4.3.2.

This patch includes also an optional fix: I got a very slow build into
the preliminar steps of the bootstrap script, so I did a change for
using Ninja instead of the traditional GNU Make.
This change allowed to decrease the build time a lot because multiple
jobs running.
It is true that it could be possible to use the --parallel option to
speed up the boostrap script even with GNU Make.
However, Ninja provides a more modern and efficient way for handling
parallel processing than Make. Perhaps, it would be worth to use it.

Sincerely,

Carlo Bramini
diff --git a/cmake.cygport b/cmake.cygport
index 4c2f764..8b2ba5b 100644
--- a/cmake.cygport
+++ b/cmake.cygport
@@ -1,8 +1,8 @@
 SCALLYWAG="notest"
-inherit emacs qt5
+inherit emacs qt5 ninja
 
 NAME="cmake"
-VERSION=4.2.1
+VERSION=4.3.2
 RELEASE=1
 
 LICENSE="BSD-3-Clause"
@@ -70,6 +70,12 @@ src_compile() {
                --system-libs \
                --no-system-cppdap \
                --sphinx-man --sphinx-html \
+               --generator=Ninja \
        || error "bootstrap failed"
-       cygmake
+       cygninja
+}
+
+src_install() {
+       cd ${B}
+       ninja_install
 }

Reply via email to