Package Details: cmake-extras 1.7-1

Git Clone URL: (read-only, click to copy)
Package Base: cmake-extras
Description: A collection of add-ons for the CMake build tool
Upstream URL:
Licenses: LGPL-3.0-or-later
Submitter: tari01
Maintainer: tari01
Last Packager: tari01
Votes: 4
Popularity: 0.003219
First Submitted: 2022-01-11 15:15 (UTC)
Last Updated: 2024-03-24 02:37 (UTC)

Latest Comments

tari01 commented on 2022-09-20 22:05 (UTC)


Thanks, updated.

kalj commented on 2022-09-20 20:00 (UTC) (edited on 2022-09-20 20:08 (UTC) by kalj)

I got a warning about deprecated cmake invocation, and an error due to this assuming GNU make is used as cmake generator (if env var CMAKE_GENERATOR is set, that is used by default). I made a suggestion of how to fix this:

diff --git a/PKGBUILD b/PKGBUILD
index b208e14..f8f89ab 100644
@@ -14,13 +14,13 @@ md5sums=("3f4a4f785cf34e6d201422e00e9e3ffa")
     cd ${srcdir}/${pkgname}-${pkgver}
-    cmake -DCMAKE_INSTALL_PREFIX=/usr
-    make
+    cmake -S . -B build -DCMAKE_INSTALL_PREFIX=/usr
+    cmake --build build

     cd ${srcdir}/${pkgname}-${pkgver}
-    make DESTDIR="${pkgdir}" install
+    DESTDIR=${pkgdir} cmake --install build