MantisBT - CMake
View Issue Details
0009620CMakeCMakepublic2009-09-30 04:482016-06-10 14:31
jmcm 
Kitware Robot 
normalminoralways
closedmoved 
CMake-2-6 
 
0009620: install(target ...) fails to set intermediate directory permissions correctly
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.
cmake 2.6.2
Linux (openSUSE 11.1)
No tags attached.
related to 0010978closed Kitware Robot Why not skip setting permissions on existing directories? 
related to 0010126closed Kitware Robot CMake creates files with wrong permissions 
Issue History
2009-09-30 04:48jmcmNew Issue
2009-09-30 08:44Bill HoffmanStatusnew => assigned
2009-09-30 08:44Bill HoffmanAssigned To => Brad King
2010-07-13 08:48Brad KingRelationship addedrelated to 0010978
2010-07-13 08:48Brad KingRelationship addedrelated to 0010126
2012-06-25 14:31Brad KingNote Added: 0029831
2012-06-25 14:31Brad KingAssigned ToBrad King =>
2012-06-25 14:31Brad KingStatusassigned => backlog
2013-10-14 12:50Rob StewartNote Added: 0034118
2016-06-10 14:27Kitware RobotNote Added: 0041599
2016-06-10 14:27Kitware RobotStatusbacklog => resolved
2016-06-10 14:27Kitware RobotResolutionopen => moved
2016-06-10 14:27Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0029831)
Brad King   
2012-06-25 14:31   
Moving to backlog awaiting contributed patch.
(0034118)
Rob Stewart   
2013-10-14 12:50   
This is a problem for me, too. If I knew where to look, I might try my hand at a patch. If it's in CMake scripting, it shouldn't be too hard. If it's in the C/C++, then I'll need instructions on finding and building the source.
(0041599)
Kitware Robot   
2016-06-10 14:27   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.