Skip to content
Snippets Groups Projects
Verified Commit e17cfb0e authored by Hendrik's avatar Hendrik Committed by Ralph Giles
Browse files

Make imported pkgconfig targets global


Signed-off-by: default avatarRalph Giles <giles@thaumas.net>
Signed-off-by: default avatarevpobr <evpobr@gmail.com>
parent 6759af4b
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,6 @@ before_script:
fi
script:
- echo ${PATH}
- cmake -Bbuild -H.
- cmake --build build
- ./autogen.sh
......
......@@ -2,5 +2,6 @@ find_package(Ogg CONFIG)
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()
......@@ -2,5 +2,6 @@ find_package(Opus CONFIG)
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()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment