forked from Mirrors/openclonk
Revert "Use pkg-config to get linker flags for SDL_mixer"
This reverts commit 9941388526
.
The breakage was just due to me using an outdated library list.
issue1247
parent
a5040fe0ad
commit
52dbf8e585
|
@ -878,10 +878,10 @@ if(USE_CONSOLE)
|
|||
SET(HAVE_LIBREADLINE ${READLINE_FOUND} CACHE INTERNAL "libreadline available")
|
||||
endif()
|
||||
|
||||
include(FindPkgConfig)
|
||||
# Set GTK link directory. This needs to be done before add_executable,
|
||||
# otherwise the path is not used for linking clonk
|
||||
if(USE_GTK)
|
||||
include(FindPkgConfig)
|
||||
if (USE_GTK3)
|
||||
pkg_check_modules(GTK3 REQUIRED "glib-2.0 >= 2.32" "gtk+-3.0 >= 3.4")
|
||||
include_directories(${GTK3_INCLUDE_DIRS})
|
||||
|
@ -894,6 +894,7 @@ if(USE_GTK)
|
|||
endif()
|
||||
|
||||
# Try to find GTK for mape
|
||||
include(FindPkgConfig)
|
||||
if (PKG_CONFIG_FOUND)
|
||||
if (USE_GTK3)
|
||||
pkg_check_modules(MAPE_GTK glib-2.0>=2.32 gthread-2.0 gtk+-3.0>=3.4 gtksourceview-3.0)
|
||||
|
@ -1398,10 +1399,8 @@ if(NOT HAVE_FMOD AND NOT USE_OPEN_AL OR USE_SDL_MAINLOOP AND NOT USE_OPEN_AL)
|
|||
SET(HAVE_SDL ${SDL_FOUND})
|
||||
if(SDL_FOUND)
|
||||
include_directories(${SDL_INCLUDE_DIR})
|
||||
pkg_check_modules(SDLMIXER "SDL_mixer")
|
||||
if(SDLMIXER_FOUND)
|
||||
include_directories(${SDLMIXER_INCLUDE_DIRS})
|
||||
link_directories(${SDLMIXER_LIBRARY_DIRS})
|
||||
FINDLIB(SDLMIXER_LIBRARIES SDL_mixer)
|
||||
if(SDLMIXER_LIBRARIES)
|
||||
SET(HAVE_LIBSDL_MIXER ON)
|
||||
endif()
|
||||
target_link_libraries(openclonk
|
||||
|
|
Loading…
Reference in New Issue