mirror of
https://github.com/zealdocs/zeal.git
synced 2024-11-26 07:37:15 +03:00
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:
parent
00d4b9ca5b
commit
294800645e
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user