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 www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

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

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake