Installation fails with libinput dependency missing
Here's the result of meson build:
~/code/libinput-config master ✔ 62d2h
▶ meson build
The Meson build system
Version: 0.59.0
Source dir: /home/marcin/code/libinput-config
Build dir: /home/marcin/code/libinput-config/build
Build type: native build
Project name: libinput-config
Project version: undefined
C compiler for the host machine: cc (gcc 11.2.1 "cc (GCC) 11.2.1 20210728 (Red Hat 11.2.1-1)")
C linker for the host machine: cc ld.bfd 2.35.2-4
Host machine cpu family: x86_64
Host machine cpu: x86_64
Library dl found: YES
Found pkg-config: /usr/bin/pkg-config (1.7.3)
Did not find CMake 'cmake'
Found CMake: NO
Run-time dependency libinput found: NO (tried pkgconfig)
meson.build:5:0: ERROR: Dependency "libinput" not found, tried pkgconfig
A full log can be found at /home/marcin/code/libinput-config/build/meson-logs/meson-log.txt
I tried to install libinput with dnf install libinput, but it's already installed. I'm on Fedora 34.