libarchive: Suppress upstream preference for MacPorts over macOS SDK

This commit is contained in:
Brad King
2026-03-10 14:05:46 -04:00
committed by Alex Overchenko
parent e07d0dacc9
commit 24cb39e081

View File

@@ -44,9 +44,11 @@ ENDIF(NOT "${CMAKE_BUILD_TYPE_UPPER}"
MATCHES "^(DEBUG|RELEASE|RELWITHDEBINFO|MINSIZEREL|NONE)\$")
ENDIF()
if(0) # XXX(cmake): not needed for build within cmake
# On MacOS, prefer MacPorts libraries to system libraries.
# I haven't come up with a compelling argument for this to be conditional.
list(APPEND CMAKE_PREFIX_PATH /opt/local)
endif() # XXX(cmake): end
# Enable @rpath in the install name.
# detail in "cmake --help-policy CMP0042"
SET(CMAKE_MACOSX_RPATH ON)