From c8170302630b30fd2eeaedca5d65c2f98ac47476 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Mon, 19 Sep 2022 15:41:37 +1000 Subject: [PATCH] CMake: Add missing find_package(ECM) for NoGUI/Wayland --- src/duckstation-nogui/CMakeLists.txt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/duckstation-nogui/CMakeLists.txt b/src/duckstation-nogui/CMakeLists.txt index 173018495..83643168c 100644 --- a/src/duckstation-nogui/CMakeLists.txt +++ b/src/duckstation-nogui/CMakeLists.txt @@ -34,10 +34,13 @@ endif() if(USE_WAYLAND) message(STATUS "Building Wayland NoGUI Platform.") - find_package(Wayland REQUIRED Client) - find_package(WaylandScanner REQUIRED) - find_package(WaylandProtocols 1.15 REQUIRED) - find_package(XKBCommon REQUIRED) + find_package(ECM REQUIRED NO_MODULE) + list(APPEND CMAKE_MODULE_PATH "${ECM_MODULE_PATH}") + + find_package(Wayland REQUIRED Client) + find_package(WaylandScanner REQUIRED) + find_package(WaylandProtocols 1.15 REQUIRED) + find_package(XKBCommon REQUIRED) target_compile_definitions(duckstation-nogui PRIVATE "NOGUI_PLATFORM_WAYLAND=1") target_sources(duckstation-nogui PRIVATE