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
I'm trying to migrate my snap from snapcraft-desktop-helpers to the gnome extension but cmake is unable to find libraries located in the sdk with find_library calls. pkg_check_modules works but I can't change cmake rules of all libraries I use. I believe that's because snapcraft sets PKG_CONFIG_PATH but not CMAKE_PREFIX_PATH.
To Reproduce
Build any cmake project which is using find_library on dependencies provided by the gnome sdk
Environment
Snapcraft is running using LXD, installed via snap package on Arch which is running inside LXC container on NixOS (as snap has no support for NixOS).
But keep in mind that the kde-neon-6 implementation seem to have a bug: according to cmake documentation, environment variable (opposed to cmake variable named the same) uses : as separator on UNIX: https://cmake.org/cmake/help/latest/envvar/CMAKE_PREFIX_PATH.html
Bug Description
I'm trying to migrate my snap from snapcraft-desktop-helpers to the gnome extension but cmake is unable to find libraries located in the sdk with find_library calls. pkg_check_modules works but I can't change cmake rules of all libraries I use. I believe that's because snapcraft sets PKG_CONFIG_PATH but not CMAKE_PREFIX_PATH.
To Reproduce
Build any cmake project which is using find_library on dependencies provided by the gnome sdk
Environment
Snapcraft is running using LXD, installed via snap package on Arch which is running inside LXC container on NixOS (as snap has no support for NixOS).
snapcraft.yaml
Relevant log output
Additional context
I also reported this as https://bugs.launchpad.net/snapcraft/+bug/2098893
The text was updated successfully, but these errors were encountered: