ladybird/Meta/CMake/gui_framework.cmake
Undefine 26a62dd8d2 Meta: Remove ladybird_option
This was just a wrapper around set, which doesn't serve much purpose
since the SerenityOS days.
2026-04-20 16:41:29 -06:00

16 lines
614 B
CMake

if (ANDROID OR VCPKG_TARGET_ANDROID)
set(_possible_guis "Android")
set(_default_gui "Android")
elseif (APPLE)
set(_possible_guis "AppKit" "Qt")
set(_default_gui "AppKit")
else()
set(_possible_guis "Qt" "Gtk")
set(_default_gui "Qt")
endif()
set(LADYBIRD_GUI_FRAMEWORK ${_default_gui} CACHE STRING "The GUI framework to use for the ladybird application. Possible values: ${_possible_guis}")
if (NOT "${LADYBIRD_GUI_FRAMEWORK}" IN_LIST _possible_guis)
message(FATAL_ERROR "Invalid value for LADYBIRD_GUI_FRAMEWORK: ${LADYBIRD_GUI_FRAMEWORK}. Possible values: ${_possible_guis}")
endif()