[CMake] INSTALL with PERMISSIONS changes the binary
Lukasz Bartnik
lukaszb at microsoft.com
Mon May 23 22:34:28 EDT 2016
Hi Everyone,
I'm trying to solve a rather peculiar (at least to me) artifact of CMake's install().
I have a binary file (elf) that I call install() on to copy it and later package with CPack.
Specifying no permissions results in a RPM extracting in 0444 mode, whereas specifying USE_SOURCE_PERMISSIONS or setting PERMISSIONS explicitly results in the binary being re-written with the current OS's elf utilities, which changes the binary and later leads to this error when I attempt to execute it:
"unsupported version 0 of Verneed record"
The file extracted from RPM has different MD5 checksum and size - and when I look into cmake_build/_CPack_Packages/Linux/RPM/..../executable I can see it's been already changed there.
Is there any way to make CMake keep permissions in RPM but not change the executable itself?
Best regards,
Lukasz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160524/1421742b/attachment.html>
More information about the CMake
mailing list