Bug Report
What's the issue you encountered?
The devkitPPC pkg-config program cannot find .pc files installed outside of /opt/devkitpro/portlibs/wii/lib/pkgconfig/, even if the PKG_CONFIG_PATH variable is properly set to these extra paths.
How can the issue be reproduced?
Create a mylib.pc file inside a cmake-base project, and in cmake do
set(ENV{PKG_CONFIG_PATH} "${CMAKE_CURRENT_SOURCE_DIR}:$ENV{PKG_CONFIG_PATH}")
find_package(PkgConfig)
pkg_check_modules(MYLIB IMPORTED_TARGET mylib)
Additional context?
The reason why this doesn't work is
One workaround could be changing that line to
export PKG_CONFIG_PATH=$DEVKITPRO_PKG_CONFIG_PATH
So, by specifying DEVKITPRO_PKG_CONFIG_PATH one could add more search paths to pkg-config (and by not using this variable, the behaviour would remain exactly the same as now).
Bug Report
What's the issue you encountered?
The devkitPPC pkg-config program cannot find
.pcfiles installed outside of /opt/devkitpro/portlibs/wii/lib/pkgconfig/, even if thePKG_CONFIG_PATHvariable is properly set to these extra paths.How can the issue be reproduced?
Create a
mylib.pcfile inside a cmake-base project, and in cmake doAdditional context?
The reason why this doesn't work is
pacman-packages/ppc/pkg-config/pkg-config.in
Line 8 in cfb663d
One workaround could be changing that line to
So, by specifying DEVKITPRO_PKG_CONFIG_PATH one could add more search paths to pkg-config (and by not using this variable, the behaviour would remain exactly the same as now).