pkg-config files are broken when CMAKE_INSTALL_{INCLUDE,LIB}DIR is absolute #8992
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
What component of
google-cloud-cpp
is this related to?All of them as far as I can see.
Describe the bug
As per title:
external/googleapis/config.pc.in
,google/cloud/config.pc.in
, andgoogle/cloud/*/config.pc.in
haveand so can’t handle absolute paths in
CMAKE_INSTALL_{INCLUDE,LIB}DIR
. This leads to broken .pc files on NixOS in particular.The generation of these buggy templates seems to have been automated in
generator/internal/scaffold_generator.cc
.Identical to libjxl/libjxl#1400 (fixed). See “Concatenating paths when building pkg-config files” for a thorough discussion of the problem and a suggested fix, or KDE’s extra-cmake-modules for a simpler approach.
Operating system:
What version of
google-cloud-cpp
are you using?1.38.0, but inspection confirms issue exists in main as well
The text was updated successfully, but these errors were encountered: