mirror of https://github.com/encounter/SDL.git
Further fixes for the sndio CMake detection
This commit is contained in:
parent
e714d4d724
commit
5ec1cef6b5
|
@ -305,6 +305,7 @@ macro(CheckSNDIO)
|
||||||
file(GLOB SNDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/sndio/*.c)
|
file(GLOB SNDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/sndio/*.c)
|
||||||
list(APPEND SOURCE_FILES ${SNDIO_SOURCES})
|
list(APPEND SOURCE_FILES ${SNDIO_SOURCES})
|
||||||
set(SDL_AUDIO_DRIVER_SNDIO 1)
|
set(SDL_AUDIO_DRIVER_SNDIO 1)
|
||||||
|
list(APPEND EXTRA_CFLAGS ${PKG_SNDIO_CFLAGS})
|
||||||
if(SDL_SNDIO_SHARED AND NOT HAVE_SDL_LOADSO)
|
if(SDL_SNDIO_SHARED AND NOT HAVE_SDL_LOADSO)
|
||||||
message_warn("You must have SDL_LoadObject() support for dynamic sndio loading")
|
message_warn("You must have SDL_LoadObject() support for dynamic sndio loading")
|
||||||
endif()
|
endif()
|
||||||
|
@ -313,7 +314,7 @@ macro(CheckSNDIO)
|
||||||
set(SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "\"${SNDIO_LIB_SONAME}\"")
|
set(SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "\"${SNDIO_LIB_SONAME}\"")
|
||||||
set(HAVE_SNDIO_SHARED TRUE)
|
set(HAVE_SNDIO_SHARED TRUE)
|
||||||
else()
|
else()
|
||||||
list(APPEND EXTRA_LIBS ${D_SNDIO_LIB})
|
list(APPEND EXTRA_LIBS ${PKG_SNDIO_LDFLAGS})
|
||||||
endif()
|
endif()
|
||||||
set(HAVE_SDL_AUDIO TRUE)
|
set(HAVE_SDL_AUDIO TRUE)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue