[cmake] fix wayland find_package

honor case for variables
This commit is contained in:
Armin Novak 2023-12-14 13:28:12 +01:00 committed by akallabeth
parent 6c26980585
commit 565582f625

View File

@ -65,5 +65,11 @@ find_library(XKBCOMMON_LIBS
HINTS "${XKBCOMMON_PC_LIBRARY_DIRS}"
)
set(Wayland_SCANNER ${WAYLAND_SCANNER})
set(Wayland_INCLUDE_DIR ${WAYLAND_INCLUDE_DIR})
set(Wayland_LIBS ${WAYLAND_LIBS})
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(WAYLAND DEFAULT_MSG WAYLAND_SCANNER WAYLAND_INCLUDE_DIR WAYLAND_LIBS XKBCOMMON_INCLUDE_DIR XKBCOMMON_LIBS)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Wayland DEFAULT_MSG Wayland_SCANNER Wayland_INCLUDE_DIR Wayland_LIBS XKBCOMMON_INCLUDE_DIR XKBCOMMON_LIBS)
set(WAYLAND_FOUND ${Wayland_FOUND})