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) .
Hi,
In #525, we decided to install
python.cmake
and callFINDPYTHON
in generated${PROJECT_NAME}Config.cmake
.But in those generated files, the
include(python.cmake)
is afterFINDPYTHON()
, so it only works for projects that already have it imported it withinclude(cmake/python.cmake)
.ref. https://github.com/stack-of-tasks/eigenpy/pull/298 for failing test + fix with this PR.
while here:
PYTHON_COMPONENTS
, otherwise theFINDPYTHON()
will fail in many cases.FINDPYTHON()
call