Default build config using cmake cannot find libraries
Affected version
- Nightly flatpak: Yes
Steps to reproduce
- Create a cmake project with "pkg_search_module(audit REQUIRED libaudit)"
- set the environment to system.
- try to build
Current behavior
it errors out
-- Checking for one of the modules 'libaudit'
CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:894 (message):
None of the required 'libaudit' found
Call Stack (most recent call first):
Expected behavior
it should compile properly
Additional information
I'm running Arch Linux, and I'm using the nightly flatpak. The project build perfectly using the terminal integrated in builder.