ref: e17cfb0ed8b5220762a91be70838903aaad84ab0
parent: 6759af4b189d9fd6480f2db14eb106715a254619
author: Hendrik <git@h3ndrk.de>
date: Mon May 31 17:01:14 EDT 2021
Make imported pkgconfig targets global Signed-off-by: Ralph Giles <giles@thaumas.net> Signed-off-by: evpobr <evpobr@gmail.com>
--- a/.travis.yml
+++ b/.travis.yml
@@ -31,7 +31,6 @@
fi
script:
- - echo ${PATH}
- cmake -Bbuild -H.
- cmake --build build
- ./autogen.sh
--- a/cmake/FindOgg.cmake
+++ b/cmake/FindOgg.cmake
@@ -2,5 +2,6 @@
if(NOT TARGET Ogg::ogg)
find_package(PkgConfig REQUIRED)
pkg_check_modules(Ogg REQUIRED IMPORTED_TARGET ogg)
+ set_target_properties(PkgConfig::Ogg PROPERTIES IMPORTED_GLOBAL TRUE)
add_library(Ogg::ogg ALIAS PkgConfig::Ogg)
endif()
--- a/cmake/FindOpus.cmake
+++ b/cmake/FindOpus.cmake
@@ -2,5 +2,6 @@
if(NOT TARGET Opus::opus)
find_package(PkgConfig REQUIRED)
pkg_check_modules(Opus REQUIRED IMPORTED_TARGET opus)
+ set_target_properties(PkgConfig::Opus PROPERTIES IMPORTED_GLOBAL TRUE)
add_library(Opus::opus ALIAS PkgConfig::Opus)
endif()