aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfuzzard <fuzzard@kodi.tv>2023-08-12 19:55:56 +1000
committerfuzzard <fuzzard@kodi.tv>2023-09-01 14:17:00 +1000
commit241102716b083c6bdef68306e21a1bcc6280fcc6 (patch)
treebae0d46a88129dd87ab9b7d1a6d90c8b1c7f33b4
parentefb7a656a82783c1c03536cf1629bc2b0b3753b5 (diff)
downloadxbmc-241102716b083c6bdef68306e21a1bcc6280fcc6.tar.xz
[cmake] FindLibZip workaround config link targets we dont handle right now
-rw-r--r--cmake/modules/FindLibZip.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake/modules/FindLibZip.cmake b/cmake/modules/FindLibZip.cmake
index df2d0428ce..6423c29be1 100644
--- a/cmake/modules/FindLibZip.cmake
+++ b/cmake/modules/FindLibZip.cmake
@@ -63,6 +63,12 @@ if(LIBZIP_FOUND)
if(TARGET libzip)
add_dependencies(libzip::zip libzip)
endif()
+ else()
+ # ToDo: When we correctly import dependencies cmake targets for the following
+ # BZip2::BZip2, LibLZMA::LibLZMA, GnuTLS::GnuTLS, Nettle::Nettle,ZLIB::ZLIB
+ # For now, we just override
+ set_target_properties(libzip::zip PROPERTIES
+ INTERFACE_LINK_LIBRARIES "")
endif()
set_property(GLOBAL APPEND PROPERTY INTERNAL_DEPS_PROP libzip::zip)
else()