install(target ...) fails to set intermediate directory permissions correctly
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
The install command for a target (executable, libary, module) allows to specifiy the permisions with which the target is to be installed. What install lacks is a way to specify the permissions for the path of directories that is created, e.g. when installing to an empty directory /opt/test
and a Unix umask of 077
, the files /opt/test/bin/myExecutable
and /opt/test/lib/libmyLib.so
have the permissions specified by the permissions statement, in my case 755
. The newly created directories /opt/test/bin
and /opt/test/lib
have permissions 700
. The same holds even for the install(DIRECTORY ...)
scenario: The specified directory/ies are created with the correct permissions, the intermediate directories that needed creating are created with 700
again.