diff options
author | evpobr <evpobr@gmail.com> | 2020-10-26 10:55:33 +0500 |
---|---|---|
committer | evpobr <evpobr@gmail.com> | 2020-10-26 20:01:20 +0500 |
commit | 98eddc72d36e3421519d54b101c09b57e4d4d10d (patch) | |
tree | d87baa7a312d9d5b7d4fe838d0cc42feae64b009 /cmake/VorbisConfig.cmake.in | |
parent | 4a767c9ead99d36f7dee4d45cabb6636dd9e8a75 (diff) | |
download | libvorbis-git-98eddc72d36e3421519d54b101c09b57e4d4d10d.tar.gz |
Export CMake targets to the build tree
Properly export Vorbis targets when added via `add_subdirectory()`.
Diffstat (limited to 'cmake/VorbisConfig.cmake.in')
-rw-r--r-- | cmake/VorbisConfig.cmake.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/VorbisConfig.cmake.in b/cmake/VorbisConfig.cmake.in index 6fc07941..6ed0dd2b 100644 --- a/cmake/VorbisConfig.cmake.in +++ b/cmake/VorbisConfig.cmake.in @@ -1,7 +1,9 @@ @PACKAGE_INIT@ include(CMakeFindDependencyMacro) -find_dependency(Ogg REQUIRED) +if(NOT TARGET Ogg::ogg) + find_dependency(Ogg REQUIRED) +endif() include(${CMAKE_CURRENT_LIST_DIR}/VorbisTargets.cmake) |