Emit correct pkg-config file if paths are absolute#29
Emit correct pkg-config file if paths are absolute#29marcin-serwin wants to merge 1 commit intosammycage:masterfrom
Conversation
|
@dg0yt bump |
|
FTR CMake now even stronger recommends to not use absolute paths:
https://cmake.org/cmake/help/v4.1/module/GNUInstallDirs.html Does this package really need the extra complexity for supporting a case which is not recommended? |
|
Absolute paths are used extensively by nixpkgs for installing development files into a separate prefix -- ignoring The complexity could be lowered a bit by bumping minimum cmake to 3.20 -- it introduces |
|
|
From its docs:
so not sure if it's worth doing.
What do you mean? We are literally reviewing my PR... |
|
In fact I didn't review so far... |
CMAKE_INSTALL_INCLUDEDIR and CMAKE_INSTALL_LIBDIR may be defined to be absolute paths. In this situation they should not be appended to the prefix. Signed-off-by: Marcin Serwin <marcin@serwin.dev>
31e8aae to
d53e9f3
Compare
|
After reading the docs I don't see how |
|
Well, I didn't ask for ping, bump or |
|
Thanks for the review. Sorry for bumping you, I was just following what @sammycage did. |
CMAKE_INSTALL_INCLUDEDIR and CMAKE_INSTALL_LIBDIR may be defined to be absolute paths. In this situation they should not be appended to the prefix.