Simplify sfml-audio link libraries call

This commit is contained in:
Chris Thrasher 2022-06-14 12:16:14 -06:00 committed by Lukas Dürrenberger
parent aa82ea132b
commit 78d99fe828

View File

@ -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)