We need to remove exec_program() from our Cmake files

David Redondo kde at david-redondo.de
Thu Oct 26 07:57:36 BST 2023


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





More information about the kde-devel mailing list