Turn wii cmake flag into a dependent option
This commit is contained in:
parent
9c3aae554e
commit
00db1f8405
@ -28,6 +28,8 @@ CMAKE_DEPENDENT_OPTION(BUILD_RECORDER "Build opengl recorder" ON
|
|||||||
"NOT SERVER_ONLY;NOT APPLE" OFF)
|
"NOT SERVER_ONLY;NOT APPLE" OFF)
|
||||||
CMAKE_DEPENDENT_OPTION(USE_FRIBIDI "Support for right-to-left languages" ON
|
CMAKE_DEPENDENT_OPTION(USE_FRIBIDI "Support for right-to-left languages" ON
|
||||||
"NOT SERVER_ONLY" OFF)
|
"NOT SERVER_ONLY" OFF)
|
||||||
|
CMAKE_DEPENDENT_OPTION(USE_WIIUSE "Support for wiimote input devices" ON
|
||||||
|
"NOT SERVER_ONLY;NOT MINGW;NOT CYGWIN" OFF)
|
||||||
|
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
list(APPEND CMAKE_PREFIX_PATH /usr/local/opt)
|
list(APPEND CMAKE_PREFIX_PATH /usr/local/opt)
|
||||||
@ -63,12 +65,6 @@ else()
|
|||||||
set(WIIUSE_BUILD ON)
|
set(WIIUSE_BUILD ON)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(MINGW OR CYGWIN OR SERVER_ONLY)
|
|
||||||
option(USE_WIIUSE "Support for wiimote input devices" OFF)
|
|
||||||
else()
|
|
||||||
option(USE_WIIUSE "Support for wiimote input devices" ON)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(UNIX AND NOT APPLE)
|
if(UNIX AND NOT APPLE)
|
||||||
option(USE_ASAN "Build with Leak/Address sanitizer" OFF)
|
option(USE_ASAN "Build with Leak/Address sanitizer" OFF)
|
||||||
option(USE_LIBBFD "Use libbfd for crash reporting and leak check" OFF)
|
option(USE_LIBBFD "Use libbfd for crash reporting and leak check" OFF)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user