diff --git a/CMakeLists.txt b/CMakeLists.txt index 44f01e8e9..2341dfdf1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1532,10 +1532,10 @@ elseif(APPLE) else() file(GLOB POWER_SOURCES ${SDL2_SOURCE_DIR}/src/power/macosx/*.c) set(SDL_POWER_MACOSX 1) + set(SDL_FRAMEWORK_IOKIT 1) endif() set(SOURCE_FILES ${SOURCE_FILES} ${POWER_SOURCES}) set(HAVE_SDL_POWER TRUE) - set(SDL_FRAMEWORK_IOKIT 1) endif() if(SDL_TIMERS)