jrl-umi3218 / jrl-cmakemodules

CMake utility toolbox
https://jrl-cmakemodules.readthedocs.io/en/master/
Other
57 stars 45 forks source link

stubs: allow user to supply name of dependent target to generate_stubs() #585

Closed ManifoldFR closed 1 year ago

ManifoldFR commented 1 year ago

Supplying python bindings target name ensures stubgen doesn't import a target that's not built yet.

Before, stubgen used to check if a target named "python" existed. This PR allows the user to give a list of optional arguments, each of which are checked to be an existing target and then appended to the stubgen target's dependencies.

Resolves #584

This should also fix stack-of-tasks/pinocchio/issues/1879