We need to remove exec_program() from our Cmake files

Ömer Fadıl USTA <[email protected]>
Newsgroups gmane.comp.kde.devel.general,gmane.comp.kde.devel.core
Message-ID <CAATbBR3hjzX7Xs6QS-p1Y3n7h-ibAJX=wV5G-uqA+581pV4SLw@mail.gmail.com>
We need to hurry to remove exec_program(....) from our cmake files because
It will be removed with the upcoming CMake's 3.28.0 version which is really
near to release. ( Just 2 hours ago its rc3 was released ).
And from a quick search for our repo ( with ripgrep) I have seen that we
got at least 18 repo using that execure_program(...)

CMake Release Notes :
https://cmake.org/cmake/help/v3.28/release/3.28.html#deprecated-and-removed-features

```
The exec_program()
<https://cmake.org/cmake/help/v3.28/command/exec_program.html#command:exec_program>
command, which has been deprecated since CMake 3.0, has been removed by
policy CMP0153
<https://cmake.org/cmake/help/v3.28/policy/CMP0153.html#policy:CMP0153>.
Use the execute_process()
<https://cmake.org/cmake/help/v3.28/command/execute_process.html#command:execute_process>
command instead.
```


[Sorry for cross post to kde-devel and kde-core-devel ]

Ömer Fadıl Usta
PGP key : 0xfd11561976b1690b
about.me/omerusta
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.