Desired behavior
Right now there is some code duplication in ign-gazebo and ign-math for finding pybind11. I assume the goal is to provide Python interfaces also for other packages in the future, thus it makes sense to have a common macro for it.
Implementation suggestion
Since PythonLibs is deprecated, the snippet should also use FindPython3 which will be provided with PR #213 .
It might be useful to extend the new IgnPython to provide several arguments as input in order to reuse the existing code but this might require some additional effort than creating an independent IgnPythonBindings macro.
Desired behavior
Right now there is some code duplication in ign-gazebo and ign-math for finding pybind11. I assume the goal is to provide Python interfaces also for other packages in the future, thus it makes sense to have a common macro for it.
Implementation suggestion
Since
PythonLibsis deprecated, the snippet should also use FindPython3 which will be provided with PR #213 .It might be useful to extend the new
IgnPythonto provide several arguments as input in order to reuse the existing code but this might require some additional effort than creating an independentIgnPythonBindingsmacro.