Closed nim65s closed 2 years ago
Can we get this merged and updated/released in EigenPy please? We have downstream packages breaking :-(
Edit: This did not fix the issue. To test, create a workspace with EigenPy-devel with this PR as the cmake module. Clone the current devel head of ndcurves. Try building current-ndcurves-devel with this EigenPy
This is working. Note, to activate this, the projects with the updated CMake module + modernized CMake need to also set set(PYTHON_EXPORT_DEPENDENCY ON)
before find_python()
. Many thanks to @nim65s for his assistance with sorting this out :)
Hi,
FINDPYTHON()
currently only usefind_package()
. This PR deals with the case where we needADD_PROJECT_DEPENDENCY()
instead, by adding aPYTHON_EXPORT_DEPENDENCY
setting.This also export:
PYTHON_SITELIB
PYTHON_SOABI
PYTHON_EXT_SUFFIX
PYTHON_EXECUTABLE
(not the current string, but the variable dynamically from thefind_dependency()
call)SEARCH_FOR_BOOST_PYTHON
is called