jrl-umi3218 / jrl-cmakemodules

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

fix python exports #530

Closed nim65s closed 2 years ago

nim65s commented 2 years ago

Hi,

In #525, we decided to install python.cmake and call FINDPYTHON in generated ${PROJECT_NAME}Config.cmake.

But in those generated files, the include(python.cmake) is after FINDPYTHON(), so it only works for projects that already have it imported it with include(cmake/python.cmake) .

ref. https://github.com/stack-of-tasks/eigenpy/pull/298 for failing test + fix with this PR.

while here: