correct prefix in package-config file

Skip to first unread message

Andreas Dedner

Nov 28, 2020, 1:39:51 PM11/28/20
to scikit-build
Hi, I'm a new user of scikit-build and it's been extremely useful. We have a large number of interconnected C++/python projects which we would like to package - so thanks for the great work you have done here!

Everything works like a charm except for one issue I haven't figured out how to solve:

we use pkg-config to locate already installed components of our project (so an incremental install is supposed to be possible). We have a '' file in our cmake source directory containing the line 'prefix=CMAKE_INSTALL_PREFIX'. After the wheel is build the resulting 'packag.pc' file contains something like
and that's put into the virtualenv (~/python-evn/lib/pkgconfig'.
Extracting that with 'pkg-config' fails obviously. I probably need to correct that during installation of the wheel because the correct path (i.e. ~/python-env') is not know during the build of the wheel.
Any help would be greatly appreciated
Reply all
Reply to author
0 new messages