mirror of https://github.com/encounter/SDL.git
fix linking with SDL_PULSEAUDIO_SHARED=OFF and SDL_X11_SHARED=OFF
This commit is contained in:
parent
b2463a917c
commit
f03215bc70
|
@ -174,7 +174,7 @@ macro(CheckPulseAudio)
|
||||||
set(SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "\"${PULSE_SIMPLE_LIB_SONAME}\"")
|
set(SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "\"${PULSE_SIMPLE_LIB_SONAME}\"")
|
||||||
set(HAVE_PULSEAUDIO_SHARED TRUE)
|
set(HAVE_PULSEAUDIO_SHARED TRUE)
|
||||||
else()
|
else()
|
||||||
list(APPEND EXTRA_LDFLAGS ${PKG_sPULSEAUDIO_LDFLAGS})
|
list(APPEND EXTRA_LDFLAGS ${PKG_PULSEAUDIO_LDFLAGS})
|
||||||
endif()
|
endif()
|
||||||
set(HAVE_SDL_AUDIO TRUE)
|
set(HAVE_SDL_AUDIO TRUE)
|
||||||
endif()
|
endif()
|
||||||
|
@ -467,6 +467,8 @@ macro(CheckX11)
|
||||||
else()
|
else()
|
||||||
list(APPEND EXTRA_LIBS ${X11_LIB} ${XEXT_LIB})
|
list(APPEND EXTRA_LIBS ${X11_LIB} ${XEXT_LIB})
|
||||||
endif()
|
endif()
|
||||||
|
else()
|
||||||
|
list(APPEND EXTRA_LIBS ${X11_LIB} ${XEXT_LIB})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(CMAKE_REQUIRED_LIBRARIES ${X11_LIB} ${X11_LIB})
|
set(CMAKE_REQUIRED_LIBRARIES ${X11_LIB} ${X11_LIB})
|
||||||
|
|
Loading…
Reference in New Issue