Skip to content

CMakeLists.txt: Explicitly look for properties-cpp

Provides a more helpful error message in case it's missing, instead of build-time failures to resolve <core/signal.h>.

Needed here: https://gitlab.com/ubports/development/core/lomiri-polkit-agent/-/blob/6dbcdb22beaad753caf569b92083ff15b2770d49/service/session-iface.h

New configure-time error when it's missing:

-- Checking for module 'properties-cpp'
--   No package 'properties-cpp' found
CMake Error at /nix/store/ih3wsahlr3d787jc4kzqizp6syq6hy29-cmake-3.29.3/share/cmake-3.29/Modules/FindPkgConfig.cmake:634 (message):
  The following required packages were not found:

   - properties-cpp

Call Stack (most recent call first):
  /nix/store/ih3wsahlr3d787jc4kzqizp6syq6hy29-cmake-3.29.3/share/cmake-3.29/Modules/FindPkgConfig.cmake:862 (_pkg_check_modules_internal)
  CMakeLists.txt:32 (pkg_check_modules)

Merge request reports