After tests were bundled in a single executable and cycles and libmv
created their own tests, the warnings on macOS have gone over 800.
The reason is setting *_LIBRARIES to single word names of the library
and later using link_directories to link them.
https://cmake.org/cmake/help/latest/command/link_directories.html
Note This command is rarely necessary and should be avoided where
there are other choices. Prefer to pass full absolute paths to
libraries where possible, since this ensures the correct library
will always be linked. The find_library() command provides the
full path, which can generally be used directly in calls to
target_link_libraries().
Warnings like the following popup for every target for every library
it links to.
ld: warning: directory not found for option '-L/Users/me/blender-build/blender/../lib/darwin/jpeg/lib/Debug'
The patch uses absolute paths to link libraries and removes
all *_LIBPATHs except PYTHON_LIBPATH from
platform_apple.cmake file.
APPLE platform now no longer needs setup_libdirs() and
cycles_link_directories.