New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect path to brew's libarchive on ARM macOS #1602
Comments
A quick fix is export LibArchive_ROOT=/opt/homebrew/opt/libarchive
cmake -S . -B build -G Ninja && cmake --build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Homebrew's default location for ARM/M-series chips macOSs is
/opt/homebrew/opt/libarchive/include
(see /opt/homebrew/opt/libarchive/include). This causes thecmake -B build
to fail becauseLibArchive_INCLUDE_PATH
is set to the path homebrew uses for Intel macs).These are the offending lines:
zeal/src/libs/core/CMakeLists.txt
Lines 34 to 36 in de213a7
It would probably be better to get brew's prefix with
$(brew --prefix)
or to predicate the prefix on the architecture.I don't know enough CMAKE to do this myself unfortunately.
Cheers
The text was updated successfully, but these errors were encountered: