Partial support of permissions on Windows (read-only attribute)
The following works fine on Linux:
install (FILES "${SOME_PATH}"
DESTINATION "${SOME_DIRECTORY}"
PERMISSIONS OWNER_READ GROUP_READ WORLD_READ
COMPONENT SomeComponent)
It does not work on Windows. I can manually set read-only attribute for a file or folder on Windows, so it would be nice if CMake partially supported Windows in this regard too.
We use this technique to prevent case when some header file is opened in IDE from installation directory, developer modifies it (thinking it is in the repo) and then these modifications are overwritten by the install.