Skip to content

Commit

Permalink
Fix macOS universal builds by ignoring macports/brew dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
LunaTheFoxgirl committed Dec 16, 2024
1 parent a27fcbb commit c6a78f4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions deps/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit c6a78f4

Please sign in to comment.