Support for Mac OS X 10.4 broken since v. 3.20
As of CMake 3.20.1, -rpath
is being added to the linker command when targeting all Apple platforms. However, ld
will return an error when -rpath
is combined with -mmacosx-version-min=10.4
. The pre-3.20.1 behavior should be restored when targeting Mac OS 10.4 and earlier.
Downstream report: https://trac.macports.org/ticket/63261