Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace exec_program() with execute_process() #16728

Merged

Conversation

moench-tegeder
Copy link
Contributor

Recent CMake (>= 3.28) do not allow exec_program() any more by default, but prefer execute_process(), which takes slightly different flags. According to the documentation, exec_program() has been deprecated since CMake 3.0 (which was released in 2014, so it should be common enough that I don't feel like making allowances for any really old CMake).

References: https://cmake.org/cmake/help/latest/policy/CMP0153.html

Recent CMake (>= 3.28) do not allow exec_program() any more by default,
but prefer execute_process(), which takes slightly different flags.
According to the documentation, exec_program() has been deprecated
since CMake 3.0 (which was released in 2014, so it should be common
enough that I don't feel like making allowances for any really old CMake).

References: https://cmake.org/cmake/help/latest/policy/CMP0153.html
@chennes
Copy link
Member

chennes commented Sep 22, 2024

Thanks for the PR -- I'm inclined to also back port it to the 1.0 branch, we will discuss it in tomorrow's PR review meeting.

@maxwxyz maxwxyz added this to the 1.0 milestone Sep 23, 2024
@yorikvanhavre yorikvanhavre merged commit 15a75ba into FreeCAD:main Sep 23, 2024
10 checks passed
@yorikvanhavre
Copy link
Member

backported

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants