gazebosim / gz-tools

Command line tools for the Gazebo libraries.
https://gazebosim.org
Apache License 2.0
14 stars 18 forks source link

Replace the deprecated `exec_program` call with `execute_process` #143

Closed azeey closed 2 months ago

azeey commented 2 months ago

🦟 Bug fix

Summary

exec_program is deprecated and causes the following warning

  Policy CMP0153 is not set: The exec_program command should not be called.
  Run "cmake --help-policy CMP0153" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  Use execute_process() instead.

This replaces it with execute_process as suggested by the warning.

Checklist

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.