From 00db1f840560effe1b6133f48364499271c5413d Mon Sep 17 00:00:00 2001 From: Benau Date: Sat, 7 Jul 2018 01:58:19 +0800 Subject: [PATCH] Turn wii cmake flag into a dependent option --- CMakeLists.txt | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 60ec14bbd..0ced74958 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,6 +28,8 @@ CMAKE_DEPENDENT_OPTION(BUILD_RECORDER "Build opengl recorder" ON "NOT SERVER_ONLY;NOT APPLE" OFF) CMAKE_DEPENDENT_OPTION(USE_FRIBIDI "Support for right-to-left languages" ON "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) list(APPEND CMAKE_PREFIX_PATH /usr/local/opt) @@ -63,12 +65,6 @@ else() set(WIIUSE_BUILD ON) 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) option(USE_ASAN "Build with Leak/Address sanitizer" OFF) option(USE_LIBBFD "Use libbfd for crash reporting and leak check" OFF)