From 5ec1cef6b5c2d58c3cb90959de5d4ed979611d3e Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Thu, 6 Oct 2022 22:43:33 -0400 Subject: [PATCH] Further fixes for the sndio CMake detection --- cmake/sdlchecks.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/sdlchecks.cmake b/cmake/sdlchecks.cmake index 0043ed60e..316453020 100644 --- a/cmake/sdlchecks.cmake +++ b/cmake/sdlchecks.cmake @@ -305,6 +305,7 @@ macro(CheckSNDIO) file(GLOB SNDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/sndio/*.c) list(APPEND SOURCE_FILES ${SNDIO_SOURCES}) set(SDL_AUDIO_DRIVER_SNDIO 1) + list(APPEND EXTRA_CFLAGS ${PKG_SNDIO_CFLAGS}) if(SDL_SNDIO_SHARED AND NOT HAVE_SDL_LOADSO) message_warn("You must have SDL_LoadObject() support for dynamic sndio loading") endif() @@ -313,7 +314,7 @@ macro(CheckSNDIO) set(SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "\"${SNDIO_LIB_SONAME}\"") set(HAVE_SNDIO_SHARED TRUE) else() - list(APPEND EXTRA_LIBS ${D_SNDIO_LIB}) + list(APPEND EXTRA_LIBS ${PKG_SNDIO_LDFLAGS}) endif() set(HAVE_SDL_AUDIO TRUE) endif()