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

David Redondo <[email protected]>
Newsgroups gmane.comp.kde.devel.core,gmane.comp.kde.devel.general
Message-ID <77206989.1kiA0p1rr1@david-desktop>
Am Donnerstag, 26. Oktober 2023, 03:49:57 CEST schrieb Ömer Fadıl USTA:
> 
> ```
> The exec_program()
> <https://cmake.org/cmake/help/v3.28/command/exec_program.html#command:exec_p
> rogram> 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:exe
> cute_process> command instead.
> ```
This is behind a policy so if we don't have

cmake_minimum_required(VERSION 3.28)

in my understanding we can continue to call it for now and not have to rush 
though it.
Otherwise we would have to change things every time a policy changes behavior.

David
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.