Skip to content

cmake: Replace exec_program() with execute_process() #16779

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

Closed
wants to merge 1 commit into from

Conversation

petk
Copy link
Contributor

@petk petk commented Mar 20, 2025

The exec_program() is deprecated as of CMake 3.0.

This also removes the rm_out variable as it isn't used in the output. In execute_process() the ERROR_QUIET and OUTPUT_QUIET resemble the behavior of exec_program(OUTPUT_VARIABLE) behavior in this case.

The exec_program() is deprecated as of CMake 3.0.

This also removes the rm_out variable as it isn't used in the output.
In execute_process() the ERROR_QUIET and OUTPUT_QUIET resemble the
behavior of exec_program(OUTPUT_VARIABLE) behavior in this case.
@testclutch

This comment was marked as outdated.

@vszakats vszakats closed this in d03429c Mar 22, 2025
@vszakats
Copy link
Member

Thanks @petk!

@petk petk deleted the patch-exec-program branch March 22, 2025 23:35
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
The `exec_program()` is deprecated as of CMake 3.0.

This also removes the `rm_out` variable as it isn't used in the output.
In `execute_process()` the `ERROR_QUIET` and `OUTPUT_QUIET` resemble
the behavior of `exec_program(OUTPUT_VARIABLE)` behavior in this case.

Closes curl#16779
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants