Add Custom Command after strip

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Add Custom Command after strip

J Decker
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.


Powered by

Please keep messages on-topic and check the CMake FAQ at:

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support:
CMake Consulting:
CMake Training Courses:

Visit other Kitware open-source projects at

Follow this link to subscribe/unsubscribe: