[CMake] Signing individual binary and problem with PackageMaker CPack generator

Anatoly Belyaev cross at cryptopro.ru
Mon Oct 22 04:15:49 EDT 2018


We use CMake

|add_custom_command(TARGET POST_BUILD COMMAND codesign ...) |

for signing executable files on build. It works fine, but when CPack 
generates package it rewrites rpath on executable files and call strip 
command on them. This changes the file and invalidates the signature. Is 
there any way in CMake to sign binary files after CPack finishes install 
and before actual packaging?

-- 
----------------------------------------
Best regards, Anatoly Belyaev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20181022/d3b79057/attachment.html>


More information about the CMake mailing list