Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
4576f40e
Commit
4576f40e
authored
Mar 18, 2012
by
Eric Noulard
Browse files
CPack STGZ put execute permission on all packages files (component case)
parent
1bfe81e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/CPack/cmCPackSTGZGenerator.cxx
View file @
4576f40e
...
...
@@ -54,21 +54,32 @@ int cmCPackSTGZGenerator::InitializeInternal()
//----------------------------------------------------------------------
int
cmCPackSTGZGenerator
::
PackageFiles
()
{
bool
retval
=
true
;
if
(
!
this
->
Superclass
::
PackageFiles
()
)
{
return
0
;
}
return
cmSystemTools
::
SetPermissions
(
packageFileNames
[
0
].
c_str
(),
/* TGZ generator (our Superclass) may
* have generated several packages (component packaging)
* so we must iterate over generated packages.
*/
for
(
std
::
vector
<
std
::
string
>::
iterator
it
=
packageFileNames
.
begin
();
it
!=
packageFileNames
.
end
();
++
it
)
{
retval
&=
cmSystemTools
::
SetPermissions
((
*
it
).
c_str
(),
#if defined( _MSC_VER ) || defined( __MINGW32__ )
S_IREAD
|
S_IWRITE
|
S_IEXEC
S_IREAD
|
S_IWRITE
|
S_IEXEC
#elif defined( __BORLANDC__ )
S_IRUSR
|
S_IWUSR
|
S_IXUSR
S_IRUSR
|
S_IWUSR
|
S_IXUSR
#else
S_IRUSR
|
S_IWUSR
|
S_IXUSR
|
S_IRGRP
|
S_IWGRP
|
S_IXGRP
|
S_IROTH
|
S_IWOTH
|
S_IXOTH
S_IRUSR
|
S_IWUSR
|
S_IXUSR
|
S_IRGRP
|
S_IWGRP
|
S_IXGRP
|
S_IROTH
|
S_IWOTH
|
S_IXOTH
#endif
);
);
}
return
retval
;
}
//----------------------------------------------------------------------
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment