CMake: Disable wxUSE_JOYSTICK by default on non-Linux UNIX systems

This commit is contained in:
Maarten Bent 2022-08-05 21:57:24 +02:00
parent 9861386fef
commit ebcec1f8b7
No known key found for this signature in database
GPG key ID: 58AAEE3F4A4FD070
2 changed files with 7 additions and 2 deletions

View file

@ -423,7 +423,12 @@ wx_option(wxUSE_MOUSEWHEEL "use mousewheel")
wx_option(wxUSE_VALIDATORS "use wxValidator and derived classes")
wx_option(wxUSE_BUSYINFO "use wxBusyInfo")
wx_option(wxUSE_HOTKEY "use wxWindow::RegisterHotKey()")
wx_option(wxUSE_JOYSTICK "use wxJoystick")
if(UNIX AND NOT APPLE AND NOT CMAKE_SYSTEM_NAME STREQUAL "Linux")
set(wxUSE_JOYSTICK_DEFAULT OFF)
else()
set(wxUSE_JOYSTICK_DEFAULT ON)
endif()
wx_option(wxUSE_JOYSTICK "use wxJoystick" ${wxUSE_JOYSTICK_DEFAULT})
wx_option(wxUSE_METAFILE "use wxMetaFile")
wx_option(wxUSE_DRAGIMAGE "use wxDragImage")
wx_option(wxUSE_UIACTIONSIMULATOR "use wxUIActionSimulator (experimental)")