Skip to content

Commit

Permalink
CMake: Remove hack to always link SDLmain on OS X
Browse files Browse the repository at this point in the history
If SDLmain isn't found by FindSDL.cmake, there are bigger problems that
need to be fixed elsewhere.

Fixes: bug #517 (hopefully once and for all)
  • Loading branch information
dscharrer committed Jul 14, 2013
1 parent e8a1059 commit 46d05de
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions CMakeLists.txt
Expand Up @@ -297,13 +297,6 @@ if(USE_SDL)
if(NOT MSVC)
check_link_library(SDL SDL_LIBRARY)
endif()
set(SDL_LIBRARIES ${SDL_LIBRARY})
if(MACOSX)
# For some reason SDLmain is not always included in SDL_LIBRARY
# But we always need it for OS X - so just include it anyway
# If it really isn't there, this will at least give better error messages
list(APPEND SDL_LIBRARIES "SDLmain")
endif()
endif(SDL_FOUND)
endif()

Expand Down Expand Up @@ -825,7 +818,7 @@ endif()
if(USE_SDL AND ARX_HAVE_OPENGL AND SDL_FOUND)
list(APPEND WINDOW_SOURCES ${WINDOW_SDL_SOURCES})
list(APPEND INPUT_SOURCES ${INPUT_SDL_SOURCES})
list(APPEND ARX_LIBRARIES ${SDL_LIBRARIES})
list(APPEND ARX_LIBRARIES ${SDL_LIBRARY})
include_directories(SYSTEM ${SDL_INCLUDE_DIR})
set(ARX_HAVE_SDL 1)
endif()
Expand Down

0 comments on commit 46d05de

Please sign in to comment.