[CMake] CPack, MinGW, strip

Peter Kümmel syntheticpp at gmx.net
Wed Feb 2 07:26:11 EST 2011


CMake 2.8.3:

When I install with "mingw32-make install/strip"
the installed files are stripped.

But when I set CPACK_STRIP_FILES to 1 and
use NSIS with "mingw32-make package" the binaries
are not stripped.

CPackConfig.cmake looks correct:

SET(CPACK_BINARY_NSIS "ON")
...
SET(CPACK_CMAKE_GENERATOR "MinGW Makefiles")
...
SET(CPACK_STRIP_FILES "1")


Is this a bug, or is there a simple fix.

Thanks,
Peter


More information about the CMake mailing list