The file(READ_SYMLINK) command gained a RESULT option to capture errors without failing.
file(READ_SYMLINK)
RESULT
presets-fileDir
swift-ninja-separate-swiftmodule-edge