Re: We need to remove exec_program() from our Cmake files

Milian Wolff <[email protected]>
Newsgroups gmane.comp.kde.devel.general,gmane.comp.kde.devel.core
Message-ID <2251487.A0zPWntCm9@milian-workstation>
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
[email protected]
http://milianw.de
signature.asc (application/pgp-signature, 833 B)
-----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-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.