macOS: LOCAL_PREFIX default/better negative logic

This commit is contained in:
Benitoite 2020-01-04 16:06:13 -08:00 committed by GitHub
parent 5ca8c85334
commit aaab85fbed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -264,8 +264,8 @@ if(APPLE)
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 "${LOCAL_PREFIX}" CACHE STRING "macos/gtk parent directory ie /usr or /opt")
elseif(NOT DEFINED LOCAL_PREFIX)
set(LOCAL_PREFIX "/usr")
endif()
endif()