On 19. 10. 21, 7:15, Jiri Slaby wrote:
I don't know the reason (maybe potentially conflicting headers with other packages), but it's done properly anyways: $ pkg-config --cflags wayland-client -I/usr/include/wayland
cmake works with ECM too: $ cat CMakeLists.txt project(wayland-find-test) cmake_minimum_required(VERSION 3.21) find_package(ECM REQUIRED) ecm_use_find_modules(DIR ${CMAKE_BINARY_DIR}/cmake MODULES FindWayland.cmake NO_OVERRIDE) set(CMAKE_MODULE_PATH ${CMAKE_BINARY_DIR}/cmake) find_package(Wayland REQUIRED COMPONENTS Client) message("Wayland headers found: " ${Wayland_INCLUDE_DIRS}) $ cmake . ... -- Found Wayland_Client: /usr/lib64/libwayland-client.so (found version "1.19.0") -- Found Wayland: /usr/lib64/libwayland-client.so (found version "1.19.0") found components: Client Wayland headers found: /usr/include/wayland -- Configuring done -- js suse labs