--nextPart5056840.nTUDPiD8GE Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii"; protected-headers="v1" From: Milian Wolff Subject: Re: We need to remove exec_program() from our Cmake files Date: Sat, 28 Oct 2023 09:10:47 +0200 Message-ID: <2251487.A0zPWntCm9@milian-workstation> MIME-Version: 1.0 On Donnerstag, 26. Oktober 2023 07:27:54 CEST Johnny Jazeix wrote: > Hi, > > for the list: > https://lxr.kde.org/search?%21v=kf5-qt5&_filestring=&_string=exec_program&_c > asesensitive=1 A lot of these should be trivial to port. For `chmod` e.g. there's now `file(CHMOD ...)` [1], similarly there's also `file(REMOVE ...)`. Anything related to pkgconfig should go through `pkg_check_modules` [2]. And for the remaining bits, using `execute_process` should be straight forward I hope. Cheers [1]: https://cmake.org/cmake/help/latest/command/file.html#chmod [2]: https://cmake.org/cmake/help/latest/module/FindPkgConfig.html -- Milian Wolff mail@milianw.de http://milianw.de --nextPart5056840.nTUDPiD8GE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEezawi1aUvUGg3A1+8zYW/HGdOX8FAmU8s/gACgkQ8zYW/HGd OX+Y3A/+OsxonrYoYWGtZGF52tB7dNkJYRzk6JWL9Mq6XFQa4jnNxWkZ5ZO3ULkb CBldJNJ4qApkCIP8/3CvQLlR1gnb9x3TUhmYWDLUUh3zmf6rGHJGDRNrAa8IxRNB M4ORJzewwybbJO53/Xh4b9u+v/dDggHdWDCi0dNIbfMO/YWgD05c2wrMQCtzAyN0 sOLDF9W0uPAsRCsck1q5KrSU6qhd9X/mwVID6qO7CrHq0pmXHXno4r0V9Hu/3q2Q kxY0bZehshtgtLp4GGs2ksNA/nA9U5SWKnIp0Fu/5RxZxAy5RllPMFuRImVtzcih WPSahtAtWTiAm3IiUk6BC5jvSbiYtm4BcN/2NONaDjq3eS6nXL3JaDJClNPelhO5 w4tN8YASjpNxZCD+Z5EGGpTudLpPpeiI6TmPocErry9XD+beCtmqga8ViLQcE/cU IJirQWaC0OJaIF1+GVVFlf848t5TRkHVsJNrawWvDU4St99ul0IcGyLfA5jf14h3 IlFPqz7mJOm5ypvicqz3l2fMxjOtqOCAAkcN1oXbkQSMz8ObsPEfm9ASexspqLNO A56cnV+COP1h/iqsE17LZqXEqVt4d9ouvbLxy2S+Lde8oR+OxTUoCG2zBYNFTQ7P zB4Iex9IhVBaIdRTRXlcw7qlJtVp2T3RKbvSTjIA0KJkszNd4/Y= =mWp7 -----END PGP SIGNATURE----- --nextPart5056840.nTUDPiD8GE--