You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where TINYOBJLOADER_{LIBRARY,INCLUDE}_DIR is set in CMakeLists.txt to the value of CMAKE_INSTALL_{LIB,INCLUDE}DIR, so it is unable to handle absolute paths being passed in the latter (unusual but valid per documentation of GNUInstallDirs). This leads to broken .pc files on NixOS in particular.
Describe the issue
As per title:
tinyobjloader.pc.in
haswhere
TINYOBJLOADER_{LIBRARY,INCLUDE}_DIR
is set inCMakeLists.txt
to the value ofCMAKE_INSTALL_{LIB,INCLUDE}DIR
, so it is unable to handle absolute paths being passed in the latter (unusual but valid per documentation of GNUInstallDirs). This leads to broken .pc files on NixOS in particular.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.
Environment
Linux localhost 5.15.36 #1-NixOS SMP Wed Apr 27 12:39:02 UTC 2022 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: