diff --git a/.github/scripts/utils.zsh/setup_linux b/.github/scripts/utils.zsh/setup_linux index f03b84a7ec3010..6fc05734fb3e55 100644 --- a/.github/scripts/utils.zsh/setup_linux +++ b/.github/scripts/utils.zsh/setup_linux @@ -97,7 +97,7 @@ sudo apt-get install -y --no-install-recommends \ libasound2-dev libfdk-aac-dev libfontconfig-dev libfreetype6-dev libjack-jackd2-dev \ libpulse-dev libsndio-dev libspeexdsp-dev libudev-dev libv4l-dev libva-dev libvlc-dev \ libpci-dev libdrm-dev \ - nlohmann-json3-dev libwebsocketpp-dev libasio-dev libvpl-dev libqrcodegencpp-dev + nlohmann-json3-dev libwebsocketpp-dev libasio-dev libvpl-dev libvpl2 libqrcodegencpp-dev if (( UBUNTU_2210_OR_LATER )) sudo apt-get install -y --no-install-recommends librist-dev libsrt-openssl-dev diff --git a/cmake/Modules/FindVPL.cmake b/cmake/Modules/FindVPL.cmake index 21803212ac7062..21faabd89d89b5 100644 --- a/cmake/Modules/FindVPL.cmake +++ b/cmake/Modules/FindVPL.cmake @@ -44,7 +44,11 @@ The following cache variables may also be set: find_package(PkgConfig QUIET) if(PKG_CONFIG_FOUND) - pkg_search_module(_VPL QUIET vpl) + pkg_search_module(_VPL IMPORTED_TARGET QUIET vpl) + if(_VPL_FOUND) + add_library(VPL::VPL ALIAS PkgConfig::_VPL) + return() + endif() endif() find_path(