From 4c3cae63d448b35bb4b590ecae02749826218212 Mon Sep 17 00:00:00 2001 From: nimetu Date: Sun, 6 Mar 2022 14:11:57 +0200 Subject: [PATCH] Fix linking when using static libvorbisfile library --- nel/src/sound/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nel/src/sound/CMakeLists.txt b/nel/src/sound/CMakeLists.txt index 0a6f78646..cfe8cf1de 100644 --- a/nel/src/sound/CMakeLists.txt +++ b/nel/src/sound/CMakeLists.txt @@ -113,7 +113,7 @@ INCLUDE_DIRECTORIES(${OGG_INCLUDE_DIR}) TARGET_LINK_LIBRARIES(nelsound ${VORBISFILE_LIBRARY} ${VORBIS_LIBRARY}) -IF(WITH_STATIC) +IF(WITH_STATIC OR ${VORBISFILE_LIBRARY} MATCHES "\\.a") # Add libogg dependency only if target is static because to libvorbisfile TARGET_LINK_LIBRARIES(nelsound ${OGG_LIBRARY}) ENDIF()