--- a/CMakeLists.txt 2026-07-22 18:39:09 +++ b/CMakeLists.txt 2026-07-22 18:50:13 @@ -1784,12 +1784,12 @@ ) IF(APPLE) - # Homebrew default location is - IF(APPLE_ARM) - SET(HOMEBREW_HOME "/opt/homebrew/opt") - ELSE() - SET(HOMEBREW_HOME "/usr/local/opt") - ENDIF() + # MacPorts build: disable MySQL's Homebrew auto-detection by pointing + # HOMEBREW_HOME at a non-existent prefix, so MySQL never inserts Homebrew + # paths (the system include dir, icu/fido/ssl/bison HINTS, the protobuf + # dependency filter, and the Homebrew-boost FATAL_ERROR check) ahead of + # the MacPorts prefix. + SET(HOMEBREW_HOME "/nonexistent/opt") # The Xcode version is 1.2.12 which is too old LIST(REMOVE_ITEM SYSTEM_LIBRARIES ZLIB) # Link with the correct version of libc++.dylib