Instead of using a variant of the CODEcommand INSTALL, use the variant instead DIRECTORY. This allows you to specify file system permissions, that is:
install (DIRECTORY "Logs" DESTINATION "." DIRECTORY_PERMISSIONS
OWNER_WRITE OWNER_READ OWNER_EXECUTE
GROUP_WRITE GROUP_READ GROUP_EXECUTE
WORLD_WRITE WORLD_READ WORLD_EXECUTE)
For a successful command, INSTALLan empty directory must exist in the source folder Logs.
sakra source
share