From bd7b4f39ed804dd7c6ed06f7255e59dde4b22c46 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 13 Apr 2020 08:05:29 -0700 Subject: [PATCH] Partial fix for bug 5086 - CMake builds on Windows broken by sensor support (thanks DominikD!) --- include/SDL_config.h.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/SDL_config.h.cmake b/include/SDL_config.h.cmake index cc6d06476..d74ea9205 100644 --- a/include/SDL_config.h.cmake +++ b/include/SDL_config.h.cmake @@ -410,6 +410,12 @@ #cmakedefine SDL_POWER_EMSCRIPTEN @SDL_POWER_EMSCRIPTEN@ #cmakedefine SDL_POWER_HARDWIRED @SDL_POWER_HARDWIRED@ +/* Enable sensor support */ +#cmakedefine SDL_SENSOR_ANDROID @SDL_SENSOR_ANDROID@ +#cmakedefine SDL_SENSOR_WINDOWS @SDL_SENSOR_WINDOWS@ +#cmakedefine SDL_SENSOR_COREMOTION @SDL_SENSOR_COREMOTION@ +#cmakedefine SDL_SENSOR_DUMMY @SDL_SENSOR_DUMMY@ + /* Enable system filesystem support */ #cmakedefine SDL_FILESYSTEM_ANDROID @SDL_FILESYSTEM_ANDROID@ #cmakedefine SDL_FILESYSTEM_HAIKU @SDL_FILESYSTEM_HAIKU@