build(cmake): set include path for LibArchive on macOS

Homebrew installs LibArchive in a non-standard location.

Fixes #1364.
Related to #1365 and #1368.
This commit is contained in:
yunfeng 2021-11-10 12:52:26 +08:00 committed by Oleg Shparber
parent 00d4b9ca5b
commit 294800645e

View File

@ -10,6 +10,11 @@ project(Zeal VERSION 0.6.2)
# NOTE: Don't forget to add a new release entry in the AppStream metadata!
set(RELEASE_VERSION FALSE)
# Set LibArchive_INCLUDE_DIR to unstandard path. Reduce the error rate
if(APPLE AND NOT LibArchive_INCLUDE_DIR)
set(LibArchive_INCLUDE_DIR "/usr/local/opt/libarchive/include")
endif()
# Project information.
if(APPLE)
set(PROJECT_OUTPUT_NAME "Zeal")