diff --git a/CMakeLists.txt b/CMakeLists.txt index c28e14910..8ab803015 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1538,7 +1538,7 @@ elseif(UNIX AND NOT APPLE AND NOT RISCOS AND NOT HAIKU) set(SDL_AUDIO_DRIVER_QNX 1) file(GLOB QNX_AUDIO_SOURCES ${SDL3_SOURCE_DIR}/src/audio/qnx/*.c) list(APPEND SOURCE_FILES ${QNX_AUDIO_SOURCES}) - list(APPEND EXTRA_LIBS asound) + list(APPEND SDL_EXTRA_LIBS asound) set(HAVE_SDL_AUDIO TRUE) endif() CheckOSS() diff --git a/cmake/sdlchecks.cmake b/cmake/sdlchecks.cmake index 4e7ac1e58..b462b704f 100644 --- a/cmake/sdlchecks.cmake +++ b/cmake/sdlchecks.cmake @@ -767,7 +767,7 @@ macro(CheckQNXScreen) set(SDL_VIDEO_DRIVER_QNX 1) file(GLOB QNX_VIDEO_SOURCES ${SDL3_SOURCE_DIR}/src/video/qnx/*.c) list(APPEND SOURCE_FILES ${QNX_VIDEO_SOURCES}) - list(APPEND EXTRA_LIBS screen EGL) + list(APPEND SDL_EXTRA_LIBS screen EGL) endif() endif() endmacro()