From f23cf0808ba86d98c850101b72d28ba616fc4d15 Mon Sep 17 00:00:00 2001 From: Benitoite Date: Sat, 4 Jan 2020 08:53:43 -0800 Subject: [PATCH] macOS: accept -DLOCAL_PREFIX and default to /usr --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d7368f115..58ae27d23 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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: