cmake: Restore SDL-Mainloop build

issue1247
Günther Brammer 2015-01-24 01:08:09 +01:00
parent 5bcedb5bbf
commit 36ce941e4d
2 changed files with 9 additions and 1 deletions

View File

@ -896,6 +896,14 @@ endif()
# Select an audio library
find_package("Audio")
# SDL
if(USE_SDL_MAINLOOP OR (Audio_TK STREQUAL "SDL_Mixer"))
include(FindSDL)
SET(HAVE_SDL ${SDL_FOUND})
include_directories(${SDL_INCLUDE_DIR})
target_link_libraries(openclonk ${SDL_LIBRARY})
endif()
############################################################################
# Precompiled header support, part 1 (pre-target)
############################################################################

View File

@ -101,7 +101,7 @@ C4AbstractApp::C4AbstractApp():
MainThread (pthread_self()),
#endif
#ifdef _WIN32
hMainThread(NULL),
idMainThread(0),
#endif
fDspModeSet(false)
{