From 9072f97fb1808e1bc1e939df42c509bfec8f3fcc Mon Sep 17 00:00:00 2001 From: CLARATION Date: Mon, 22 Jun 2026 19:01:12 -0700 Subject: [PATCH] fix(build): maybe link to these libraries on linux? Revert "fix(build): maybe link to these libraries on linux?" This reverts commit 7313405a369f0acca8aaec74e4a40b50d824ee4b. Update CMakeLists.txt --- CMakeLists.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index df25ce2..639e8a6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -369,6 +369,13 @@ if(WITH_STATIC) # ========================= # libirecovery # ========================= + + if(LINUX) + set(LIBIRECOVERY_LIBS + LIBS="-lncurses" + ) + endif() + ExternalProject_Add(libirecovery_ep GIT_REPOSITORY https://github.com/libimobiledevice/libirecovery.git GIT_TAG 7ce02c347b7c26e59498e6af31c9da51018d0fa1 @@ -382,7 +389,7 @@ if(WITH_STATIC) --prefix=${DEPS_PREFIX} ${IMD_AUTOTOOLS_ARGS} - BUILD_COMMAND make -j + BUILD_COMMAND make -j ${LIBIRECOVERY_LIBS} INSTALL_COMMAND make install BUILD_IN_SOURCE 1