Fix Wayland not being disabled when dependencies are not found

This commit is contained in:
Brecht Van Lommel 2022-10-17 13:24:00 +02:00
parent 390cf2fe75
commit baa9a00f5f
1 changed files with 6 additions and 6 deletions

View File

@ -740,27 +740,27 @@ if(WITH_GHOST_WAYLAND)
set(wayland-cursor_FOUND ON)
endif()
if (NOT ${wayland-client_FOUND})
if (NOT wayland-client_FOUND)
message(STATUS "wayland-client not found, disabling WITH_GHOST_WAYLAND")
set(WITH_GHOST_WAYLAND OFF)
endif()
if (NOT ${wayland-egl_FOUND})
if (NOT wayland-egl_FOUND)
message(STATUS "wayland-egl not found, disabling WITH_GHOST_WAYLAND")
set(WITH_GHOST_WAYLAND OFF)
endif()
if (NOT ${wayland-scanner_FOUND})
if (NOT wayland-scanner_FOUND)
message(STATUS "wayland-scanner not found, disabling WITH_GHOST_WAYLAND")
set(WITH_GHOST_WAYLAND OFF)
endif()
if (NOT ${wayland-cursor_FOUND})
if (NOT wayland-cursor_FOUND)
message(STATUS "wayland-cursor not found, disabling WITH_GHOST_WAYLAND")
set(WITH_GHOST_WAYLAND OFF)
endif()
if (NOT ${wayland-protocols_FOUND})
if (NOT wayland-protocols_FOUND)
message(STATUS "wayland-protocols not found, disabling WITH_GHOST_WAYLAND")
set(WITH_GHOST_WAYLAND OFF)
endif()
if (NOT ${xkbcommon_FOUND})
if (NOT xkbcommon_FOUND)
message(STATUS "xkbcommon not found, disabling WITH_GHOST_WAYLAND")
set(WITH_GHOST_WAYLAND OFF)
endif()