From 3f98400f8f1da2b7ba2b103417d7681f51d6061d Mon Sep 17 00:00:00 2001 From: CLARATION Date: Fri, 19 Jun 2026 21:45:34 -0700 Subject: [PATCH] fix: append libusb to depends properly --- CMakeLists.txt | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fcf95b7..9c8411b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -246,6 +246,18 @@ if(WITH_GUI) # ========================= # libimobiledevice # ========================= + + set(LIBIMOBILEDEVICE_DEPS + mbedtls_ep + libplist_ep + libusbmuxd_ep + limd_glue_ep + ) + + if(LINUX) + list(APPEND LIBIMOBILEDEVICE_DEPS libusb_ep) + endif() + ExternalProject_Add(libimobiledevice_ep GIT_REPOSITORY https://github.com/libimobiledevice/libimobiledevice.git GIT_TAG ed0d66d0341562731bb19928dfe48155509fa7a7 @@ -264,7 +276,7 @@ if(WITH_GUI) INSTALL_COMMAND make install BUILD_IN_SOURCE 1 - DEPENDS mbedtls_ep libplist_ep libusbmuxd_ep limd_glue_ep libusb_ep + DEPENDS ${LIBIMOBILEDEVICE_DEPS} ) file(WRITE