mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 14:21:04 +08:00
Don't modify external targets
This commit is contained in:
parent
26e54c7b2c
commit
1aa6750f50
@ -72,14 +72,13 @@ sfml_find_package(OpenAL OPENAL_INCLUDE_DIR OPENAL_LIBRARY)
|
||||
sfml_find_package(VORBIS VORBIS_INCLUDE_DIRS VORBIS_LIBRARIES)
|
||||
sfml_find_package(FLAC FLAC_INCLUDE_DIR FLAC_LIBRARY)
|
||||
|
||||
# avoids warnings in vorbisfile.h
|
||||
target_compile_definitions(VORBIS INTERFACE "OV_EXCLUDE_STATIC_CALLBACKS")
|
||||
target_compile_definitions(FLAC INTERFACE "FLAC__NO_DLL")
|
||||
|
||||
# define the sfml-audio target
|
||||
sfml_add_library(Audio
|
||||
SOURCES ${SRC} ${CODECS_SRC})
|
||||
|
||||
# avoids warnings in vorbisfile.h
|
||||
target_compile_definitions(sfml-audio PRIVATE OV_EXCLUDE_STATIC_CALLBACKS FLAC__NO_DLL)
|
||||
|
||||
# setup dependencies
|
||||
target_link_libraries(sfml-audio
|
||||
PUBLIC SFML::System
|
||||
|
Loading…
Reference in New Issue
Block a user