Skip to content

Commit 5202bbc

Browse files
h3ndrkrillian
authored andcommitted
Make pkgconfig targets globally imported targets
Signed-off-by: Ralph Giles <giles@thaumas.net> Signed-off-by: evpobr <evpobr@gmail.com>
1 parent 54056fd commit 5202bbc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

opusfileConfig.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ find_package(Ogg CONFIG ${cmake_quiet_arg})
1212
if(NOT TARGET Ogg::ogg)
1313
find_package(PkgConfig REQUIRED ${cmake_quiet_arg})
1414
pkg_check_modules(Ogg ${cmake_required_arg} ${cmake_quiet_arg} IMPORTED_TARGET ogg)
15+
set_target_properties(PkgConfig::Ogg PROPERTIES IMPORTED_GLOBAL TRUE)
1516
add_library(Ogg::ogg ALIAS PkgConfig::Ogg)
1617
endif()
1718

@@ -25,6 +26,7 @@ find_package(Opus CONFIG ${cmake_quiet_arg})
2526
if(NOT TARGET Opus::opus)
2627
find_package(PkgConfig REQUIRED ${cmake_quiet_arg})
2728
pkg_check_modules(Opus ${cmake_required_arg} ${cmake_quiet_arg} IMPORTED_TARGET opus)
29+
set_target_properties(PkgConfig::Opus PROPERTIES IMPORTED_GLOBAL TRUE)
2830
add_library(Opus::opus ALIAS PkgConfig::Opus)
2931
endif()
3032

0 commit comments

Comments
 (0)