Open alexshpilkin opened 2 years ago
Describe the bug
As per title: cmake/benchmark.pc.in has
cmake/benchmark.pc.in
prefix=@CMAKE_INSTALL_PREFIX@ exec_prefix=${prefix} libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@ includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
and so can’t handle absolute paths in CMAKE_INSTALL_{INCLUDE,LIB}DIR. This leads to broken .pc files on NixOS in particular.
CMAKE_INSTALL_{INCLUDE,LIB}DIR
Identical to https://github.com/libjxl/libjxl/issues/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.
System
$ uname -a Linux localhost 5.15.36 #1-NixOS SMP Wed Apr 27 12:39:02 UTC 2022 x86_64 GNU/Linux
This was fixed by https://github.com/google/benchmark/pull/1473.
Edit: Actually, not quite, that PR just moved to the FULL variants :(
FULL
Describe the bug
As per title:
cmake/benchmark.pc.in
hasand so can’t handle absolute paths in
CMAKE_INSTALL_{INCLUDE,LIB}DIR
. This leads to broken .pc files on NixOS in particular.Identical to https://github.com/libjxl/libjxl/issues/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.
System