CMake: Disable wxUSE_JOYSTICK by default on non-Linux UNIX systems
(cherry picked from commit ebcec1f8b7941e1808d2713aafd0aac48c75ff7d)
This commit is contained in:
parent
739e8c6ede
commit
a6d05742ac
@ -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)")
|
||||
|
@ -445,7 +445,7 @@ if(UNIX)
|
||||
check_symbol_exists(inet_addr arpa/inet.h HAVE_INET_ADDR)
|
||||
endif(wxUSE_SOCKETS)
|
||||
|
||||
if(WXGTK AND NOT APPLE)
|
||||
if(wxUSE_JOYSTICK AND NOT APPLE)
|
||||
check_include_files("linux/joystick.h" HAVE_JOYSTICK_H)
|
||||
if(NOT HAVE_JOYSTICK_H)
|
||||
message(WARNING "wxJoystick is not available")
|
||||
|
Loading…
Reference in New Issue
Block a user