diff --git a/cmake/FindWayland.cmake b/cmake/FindWayland.cmake index 6128c1433..e35173355 100644 --- a/cmake/FindWayland.cmake +++ b/cmake/FindWayland.cmake @@ -53,7 +53,7 @@ find_library(WAYLAND_CURSOR_LIB ) if (WAYLAND_CLIENT_LIB AND WAYLAND_CURSOR_LIB) - list(INSERT WAYLAND_LIBS ${WAYLAND_CLIENT_LIB} ${WAYLAND_CURSOR_LIB}) + list(APPEND WAYLAND_LIBS ${WAYLAND_CLIENT_LIB} ${WAYLAND_CURSOR_LIB}) endif (WAYLAND_CLIENT_LIB AND WAYLAND_CURSOR_LIB) find_path(XKBCOMMON_INCLUDE_DIR xkbcommon/xkbcommon.h