Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[macOS] Ask CMake to look in the right place for include & link direc…
…tories (#12516) * Ask CMake to look in the right place for include_directories and link_directories on macOS (arm64 and x86_64) Homebrew installs to a different location on Arm Macs compared to Intel Macs. This change prevents this error when compiling on Arm: `ld: warning: directory not found for option '-L/opt/local/lib'` Use STREQUAL instead of MATCHES, since MATCHES is supposed to be used with regular expressions. Also update the homebrew directories for Intel, since they were wrong. Remove the conditional check for x86 Apple, as usr/local is part of the default search path. Tested on Intel and the warning does not appear.
- Loading branch information