CMake: Disable wxUSE_JOYSTICK by default on non-Linux UNIX systems
This commit is contained in:
parent
9861386fef
commit
ebcec1f8b7
2 changed files with 7 additions and 2 deletions
|
|
@ -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)")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue