From 78d99fe828c20c9e51a4d0779ca1a46d7f742d99 Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Tue, 14 Jun 2022 12:16:14 -0600 Subject: [PATCH] Simplify sfml-audio link libraries call --- src/SFML/Audio/CMakeLists.txt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/SFML/Audio/CMakeLists.txt b/src/SFML/Audio/CMakeLists.txt index ea37c753..a6322ed6 100644 --- a/src/SFML/Audio/CMakeLists.txt +++ b/src/SFML/Audio/CMakeLists.txt @@ -81,7 +81,9 @@ sfml_add_library(Audio SOURCES ${SRC} ${CODECS_SRC}) # setup dependencies -target_link_libraries(sfml-audio PRIVATE OpenAL) +target_link_libraries(sfml-audio + PUBLIC SFML::System + PRIVATE OpenAL VORBIS FLAC) # minimp3 sources target_include_directories(sfml-audio SYSTEM PRIVATE "${PROJECT_SOURCE_DIR}/extlibs/headers/minimp3") @@ -89,7 +91,3 @@ target_include_directories(sfml-audio SYSTEM PRIVATE "${PROJECT_SOURCE_DIR}/extl if(SFML_OS_ANDROID) target_link_libraries(sfml-audio PRIVATE android OpenSLES) endif() - -target_link_libraries(sfml-audio - PUBLIC SFML::System - PRIVATE VORBIS FLAC)