How to check file permissions with CMake?

Is there a way with CMake to check the permissions of a file?

IE: Read/write/execute permissions?

I don’t think CMake exposes such things itself today.

1 Like