CMake: Add missing find_package(ECM) for NoGUI/Wayland

This commit is contained in:
Connor McLaughlin 2022-09-19 15:41:37 +10:00
parent 3dcd901885
commit c817030263
1 changed files with 7 additions and 4 deletions

View File

@ -34,10 +34,13 @@ endif()
if(USE_WAYLAND) if(USE_WAYLAND)
message(STATUS "Building Wayland NoGUI Platform.") message(STATUS "Building Wayland NoGUI Platform.")
find_package(Wayland REQUIRED Client) find_package(ECM REQUIRED NO_MODULE)
find_package(WaylandScanner REQUIRED) list(APPEND CMAKE_MODULE_PATH "${ECM_MODULE_PATH}")
find_package(WaylandProtocols 1.15 REQUIRED)
find_package(XKBCommon REQUIRED) 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_compile_definitions(duckstation-nogui PRIVATE "NOGUI_PLATFORM_WAYLAND=1")
target_sources(duckstation-nogui PRIVATE target_sources(duckstation-nogui PRIVATE