Skip to content

find_library: Check that library files are readable

Brad King requested to merge brad.king/cmake:find_library-file-readable into master

Refactoring in commit 6b851669 dropped a call to FileExists on the path under the assumption that the presence of a file in a directory listing means it exists. However, dropping that also dropped a check that verifies the file is readable. Restore the FileExists call to ensure that we only find readable libraries.

Backport: release

Merge request reports