[CMake] Add Custom Command after strip

J Decker d3ck0r at gmail.com
Mon Apr 22 18:50:31 EDT 2019


I'm trying to use MingW64-x86 to compile this project. I'm using MingW
Makefiles as the generator.

Some of the executable files need 'mt.exe' run to add a manifest to them
(on windows).
The MT.exe breaks the .exe for strip such that it says 'file has been
truncated' and the build stops.  Strip is run against the executable during
release builds...

The documentation of course saying POST_BUILD on the add_custom_command
says 'after all the build steps' but apparently strip is some sort of
post-build thing itself.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20190422/3bf166fd/attachment.html>


More information about the CMake mailing list