We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3670

Summary: CMake IOS haptic error
Product: SDL Reporter: Martin Gerhardy <martin.gerhardy>
Component: buildAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: icculus
Version: HG 2.1   
Hardware: All   
OS: iOS (All)   

Description Martin Gerhardy 2017-06-11 17:46:53 UTC
endif()
 
   if(SDL_HAPTIC)
     set(SDL_HAPTIC_IOKIT 1)
     if (IOS)
-      file(GLOB HAPTIC_SOURCES ${SDL2_SOURCE_DIR}/src/haptic/dummy/*.c)
+      file(GLOB POWER_SOURCES ${SDL2_SOURCE_DIR}/src/power/dummy/*.c)
       set(SDL_HAPTIC_DUMMY 1)
     else()
       file(GLOB HAPTIC_SOURCES ${SDL2_SOURCE_DIR}/src/haptic/darwin/*.c)


Somehow the power sources slipped into the ios cmake section for the haptic dummy driver
Comment 1 Ryan C. Gordon 2017-06-11 20:01:18 UTC
This patch is now https://hg.libsdl.org/SDL/rev/84a49d9b3e58, thanks!

--ryan.
Comment 2 Martin Gerhardy 2017-06-12 06:39:00 UTC
Thanks a lot - one part was missed - GLOB POWER_SOURCES should be used as variable names. (Not sure whether this is a must have - but it's the cleaner way)
Comment 3 Martin Gerhardy 2017-06-12 06:40:27 UTC
I meant shouldn't - GLOB HAPTIC_SOURCES should be used - the patch was just recorded in the wrong direction. Sorry for the confusion.
Comment 4 Sam Lantinga 2017-06-12 23:36:12 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/5cf754a84eb7