This add a Numpy::Numpytarget, which allows our libraries to link to a generic version of "we need numpy include dirs", instead of hardcoding the path to numpy include dirs at configure time in exported targets, thus enabling relocalization.
eg.: in installed ./lib/cmake/eigenpy/eigenpyTargets.cmake, we get:
Hi,
This add a
Numpy::Numpy
target, which allows our libraries to link to a generic version of "we need numpy include dirs", instead of hardcoding the path to numpy include dirs at configure time in exported targets, thus enabling relocalization.eg.: in installed
./lib/cmake/eigenpy/eigenpyTargets.cmake
, we get:Instead of the current:
Which could also be eg.
/home/gsaurel/.local/lib/python3.10/site-packages/numpy
…