From c2b489a0ffd10f8f64770944bc98588df40603ac Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 23 Jul 2026 14:57:45 +0200 Subject: [PATCH] Do not link macOS bundle with homebrew libraries. Do not want dependency on something being installed via brew. --- cmake/vendor.cmake | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/cmake/vendor.cmake b/cmake/vendor.cmake index 067c9fa9..90b4f709 100644 --- a/cmake/vendor.cmake +++ b/cmake/vendor.cmake @@ -8,11 +8,17 @@ set (ROOT_DIR "${CMAKE_CURRENT_LIST_DIR}/../") include(FindPkgConfig) include(${CMAKE_CURRENT_LIST_DIR}/CPM.cmake) +if(APPLE AND BUNDLE) + set(DLOPT ON) +else() + set(DLOPT OFF) +endif() + option(DOWNLOAD_CAPSTONE "Force download capstone" ON) -option(DOWNLOAD_GLFW "Force download glfw" OFF) -option(DOWNLOAD_FREETYPE "Force download freetype" OFF) -option(DOWNLOAD_LIBCURL "Force download libcURL" OFF) -option(DOWNLOAD_PUGIXML "Force download pugixml" OFF) +option(DOWNLOAD_GLFW "Force download glfw" ${DLOPT}) +option(DOWNLOAD_FREETYPE "Force download freetype" ${DLOPT}) +option(DOWNLOAD_LIBCURL "Force download libcURL" ${DLOPT}) +option(DOWNLOAD_PUGIXML "Force download pugixml" ${DLOPT}) # capstone