macOS: accept -DLOCAL_PREFIX and default to /usr

This commit is contained in:
Benitoite
2020-01-04 08:53:43 -08:00
committed by GitHub
parent 5252836503
commit f23cf0808b

View File

@@ -263,7 +263,11 @@ if(APPLE)
if("${NOTARY}")
set(NOTARY "${NOTARY}" CACHE STRING "Notarization Identity")
endif()
if("${LOCAL_PREFIX}")
set(LOCAL_PREFIX "${LOCAL_PREFIX}" CACHE STRING "macos/gtk parent directory, ie. /usr or /opt")
else()
set(LOCAL_PREFIX "/usr")
endif()
endif()
# Enforce absolute paths for non-bundle builds: