fix MacOS build with disabled SDL_SENSOR

+ get rid of the double-check (SDL_HAPTIC depends on SDL_JOYSTICK)
This commit is contained in:
pionere 2022-01-12 10:06:22 +01:00 committed by Ryan C. Gordon
parent 176941a4fb
commit 11cdde01f3
1 changed files with 0 additions and 4 deletions

View File

@ -1880,7 +1880,6 @@ elseif(APPLE)
endif()
set(SDL_FRAMEWORK_GAMECONTROLLER 1)
set(SDL_FRAMEWORK_COREHAPTICS 1)
set(HAVE_SDL_SENSORS 1)
else()
file(GLOB JOYSTICK_SOURCES ${SDL2_SOURCE_DIR}/src/joystick/darwin/*.c)
set_source_files_properties(${MFI_JOYSTICK_SOURCES} PROPERTIES COMPILE_FLAGS -fobjc-weak)
@ -1928,9 +1927,6 @@ elseif(APPLE)
endif()
set(SOURCE_FILES ${SOURCE_FILES} ${HAPTIC_SOURCES})
set(HAVE_SDL_HAPTIC TRUE)
if(NOT SDL_JOYSTICK)
message(FATAL_ERROR "SDL_HAPTIC requires SDL_JOYSTICK to be enabled")
endif()
endif()
if(SDL_POWER)