chore(tests): fix build break on macOS (#6773)

This commit is contained in:
Benign X
2024-09-02 12:50:40 +08:00
committed by GitHub
parent b90117062e
commit ca44056f0e

View File

@@ -205,6 +205,7 @@ if(NOT (CMAKE_C_COMPILER_ID STREQUAL "MSVC"))
-Werror=strict-aliasing
-Wno-double-promotion
-Wno-unreachable-code
-Wno-gnu-zero-variadic-macro-arguments
)
else()
list(APPEND COMPILE_OPTIONS
@@ -329,7 +330,9 @@ if(NOT WIN32)
# Wayland
find_package(PkgConfig)
pkg_check_modules(wayland-client REQUIRED wayland-client)
pkg_check_modules(wayland_client wayland-client)
if (wayland_client_FOUND)
pkg_check_modules(wayland-cursor REQUIRED wayland-cursor)
pkg_check_modules(xkbcommon REQUIRED xkbcommon)
@@ -338,7 +341,9 @@ if(NOT WIN32)
# Add auto generated source required for XDG shell
include_directories("${LVGL_TEST_DIR}/wayland_protocols")
target_sources(test_common PUBLIC "wayland_protocols/wayland_xdg_shell.c")
else()
add_definitions(-DLV_USE_WAYLAND=0)
endif()
endif()
# libpng is required for the png test case