ref: 5202bbc8872d8e948911ce73a2049c87b7f8cf4d
parent: 54056fde8abcc00d3b7f3b22176cab7dd9fb8c65
author: Hendrik <git@h3ndrk.de>
date: Thu Jun 3 08:03:48 EDT 2021
Make pkgconfig targets globally imported targets Signed-off-by: Ralph Giles <giles@thaumas.net> Signed-off-by: evpobr <evpobr@gmail.com>
--- a/opusfileConfig.cmake
+++ b/opusfileConfig.cmake
@@ -12,6 +12,7 @@
if(NOT TARGET Ogg::ogg)
find_package(PkgConfig REQUIRED ${cmake_quiet_arg})
pkg_check_modules(Ogg ${cmake_required_arg} ${cmake_quiet_arg} IMPORTED_TARGET ogg)
+ set_target_properties(PkgConfig::Ogg PROPERTIES IMPORTED_GLOBAL TRUE)
add_library(Ogg::ogg ALIAS PkgConfig::Ogg)
endif()
@@ -25,6 +26,7 @@
if(NOT TARGET Opus::opus)
find_package(PkgConfig REQUIRED ${cmake_quiet_arg})
pkg_check_modules(Opus ${cmake_required_arg} ${cmake_quiet_arg} IMPORTED_TARGET opus)
+ set_target_properties(PkgConfig::Opus PROPERTIES IMPORTED_GLOBAL TRUE)
add_library(Opus::opus ALIAS PkgConfig::Opus)
endif()