From ad7b225cfa20ad63bc5e9784bc7fd1a03a83555b Mon Sep 17 00:00:00 2001 From: John Date: Fri, 19 Jun 2020 10:17:59 +0200 Subject: [PATCH] telegram-desktop: fix cross --- .../patches/cmake-pkgconfig-rlottie.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 srcpkgs/telegram-desktop/patches/cmake-pkgconfig-rlottie.patch diff --git a/srcpkgs/telegram-desktop/patches/cmake-pkgconfig-rlottie.patch b/srcpkgs/telegram-desktop/patches/cmake-pkgconfig-rlottie.patch new file mode 100644 index 00000000000..2da8e5b8f6b --- /dev/null +++ b/srcpkgs/telegram-desktop/patches/cmake-pkgconfig-rlottie.patch @@ -0,0 +1,17 @@ +--- cmake/external/rlottie/CMakeLists.txt 2020-06-17 18:07:24.000000000 +0200 ++++ - 2020-06-19 10:17:31.071247004 +0200 +@@ -8,14 +8,9 @@ + add_library(external_rlottie INTERFACE IMPORTED GLOBAL) + add_library(desktop-app::external_rlottie ALIAS external_rlottie) + +- find_package(rlottie) +- if (rlottie_FOUND) +- target_link_libraries(external_rlottie INTERFACE rlottie::rlottie) +- else() + find_package(PkgConfig REQUIRED) + pkg_check_modules(RLOTTIE REQUIRED IMPORTED_TARGET rlottie) + target_link_libraries(external_rlottie INTERFACE PkgConfig::RLOTTIE) +- endif() + else() + add_library(external_rlottie OBJECT) + add_library(desktop-app::external_rlottie ALIAS external_rlottie)