Closed tobim closed 3 years ago
CMake has CMAKE_INSTALL_FULL_*DIR
variables that can be used instead, but the ${prefix}
parts would need to be removed from includedir
and libdir
.
There have been quite a few PRs regarding pkgconfig recently, and I don't know the motivation and requirements, but it seems to me that the variable preparation logic in both the Makefile and CMake based builds are too complicated.
@tobim, given the apparently mutually exclusive needs we've gotten from users of our pkg-config
file, we've struggled to find a solution that supports everyone's use cases. In particular, we were requested to always leave ${prefix}
in, in #1794. I'm not sure how we could accommodate that use case along with this at the same time. Any suggestions?
One approach I can think of is to take the absolute paths to the install locations includedir
and libdir
and extracting the common prefix directory. The result can then be used to assign prefix
instead of the one that was passed on the command line.
Should be fixed in dev
.
Describe the bug When CMake is used to build zstd, it can be configured with explicit install paths for the includes, libraries, binaries and so on. When one of these paths is absolute, the generated
libzstd.pc
contains wrong fields.To Reproduce Steps to reproduce the behavior:
Expected behavior