Skip to content

Installed VorbisConfig.cmake needs Ogg dependency #95

@madebr

Description

@madebr

An installed VorbisConfig.cmake needs Ogg

if(NOT TARGET Ogg::ogg)
find_dependency(Ogg REQUIRED)
endif()

This assumes ogg is installed with cmake and OggConfig.cmake/FindOgg.cmake is somehow available.

Vorbis itself ships a FindOgg.cmake module and thus does not require ogg to provide OggConfig.cmake.

So I propose to installFindOgg.cmake as well, and add it to CMAKE_MODULE_PATH inside VorbisConfig.cmake.

I do something similar in SDL_mixer to find the various dependencies.
(SDL_mixer only needs the dependencies when building a static library)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions