From c6a78f4a7510fd31a86998b7ceedfc2916ecfae0 Mon Sep 17 00:00:00 2001 From: LunaTheFoxgirl Date: Mon, 16 Dec 2024 20:02:23 +0100 Subject: [PATCH] Fix macOS universal builds by ignoring macports/brew dirs --- deps/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/deps/CMakeLists.txt b/deps/CMakeLists.txt index a8bf132..18dd804 100644 --- a/deps/CMakeLists.txt +++ b/deps/CMakeLists.txt @@ -32,6 +32,13 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Windows") elseif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") set(PlatformFolder "darwin") set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64") + + # This is neccesary to avoid macports/homebrew libraries to be seen + # these break universal builds. + set(CMAKE_IGNORE_PATH + /opt/local/lib + /opt/local/include + /opt/local/bin) elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux") set(PlatformFolder "linux") elseif (${CMAKE_SYSTEM_NAME} MATCHES "Android")