Fixed permissions in CMake