Skip to content

Commit

Permalink
Merge pull request #3 from a1rwulf/fix_defines
Browse files Browse the repository at this point in the history
Fix defines
  • Loading branch information
garbear committed Apr 3, 2015
2 parents 8b1ba25 + 7b96749 commit f24de03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ set(JOYSTICK_SOURCES src/addon.cpp
src/log/LogSyslog.cpp)

if(SDL_FOUND)
add_definitions(-DHAS_SDL)
add_definitions(-DHAVE_SDL)
list(APPEND JOYSTICK_SOURCES src/api/sdl/JoystickInterfaceSDL.cpp
src/api/sdl/JoystickSDL.cpp)
list(APPEND DEPLIBS ${SDL_LIBRARIES})
Expand All @@ -37,7 +37,7 @@ endif()
include(CheckIncludeFiles)
check_include_files(linux/joystick.h HAVE_LINUX_JOYSTICK_H)
if(HAVE_LINUX_JOYSTICK_H)
add_definitions(-DHAS_LINUX_JOYSTICK)
add_definitions(-DHAVE_LINUX_JOYSTICK)
list(APPEND JOYSTICK_SOURCES src/api/linux/JoystickInterfaceLinux.cpp
src/api/linux/JoystickLinux.cpp)
endif()
Expand Down

0 comments on commit f24de03

Please sign in to comment.