Rename FindVorbis -> FindVORBIS, for consistency with exported variables (e.g. VORBIS_FOUND)

Fixes #1626
This commit is contained in:
Jan Haller 2019-12-08 10:27:09 +01:00 committed by Lukas Dürrenberger
parent 519e1f9572
commit 110fb75513
2 changed files with 3 additions and 3 deletions

View File

@ -67,11 +67,11 @@ endif()
# find external libraries
sfml_find_package(OpenAL INCLUDE "OPENAL_INCLUDE_DIR" LINK "OPENAL_LIBRARY")
sfml_find_package(Vorbis INCLUDE "VORBIS_INCLUDE_DIRS" LINK "VORBIS_LIBRARIES")
sfml_find_package(VORBIS INCLUDE "VORBIS_INCLUDE_DIRS" LINK "VORBIS_LIBRARIES")
sfml_find_package(FLAC INCLUDE "FLAC_INCLUDE_DIR" LINK "FLAC_LIBRARY")
# avoids warnings in vorbisfile.h
target_compile_definitions(Vorbis INTERFACE "OV_EXCLUDE_STATIC_CALLBACKS")
target_compile_definitions(VORBIS INTERFACE "OV_EXCLUDE_STATIC_CALLBACKS")
target_compile_definitions(FLAC INTERFACE "FLAC__NO_DLL")
# define the sfml-audio target
@ -87,4 +87,4 @@ endif()
target_link_libraries(sfml-audio
PUBLIC sfml-system
PRIVATE Vorbis FLAC)
PRIVATE VORBIS FLAC)