Skip to content

Commit

Permalink
Rename FindVorbis -> FindVORBIS, for consistency with exported variab…
Browse files Browse the repository at this point in the history
…les (e.g. VORBIS_FOUND)

Fixes #1626
  • Loading branch information
Bromeon authored and eXpl0it3r committed Jan 2, 2020
1 parent 519e1f9 commit 110fb75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
File renamed without changes.
6 changes: 3 additions & 3 deletions src/SFML/Audio/CMakeLists.txt
Expand Up @@ -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
Expand All @@ -87,4 +87,4 @@ endif()

target_link_libraries(sfml-audio
PUBLIC sfml-system
PRIVATE Vorbis FLAC)
PRIVATE VORBIS FLAC)

0 comments on commit 110fb75

Please sign in to comment.