The following issue has been SUBMITTED. ====================================================================== http://public.kitware.com/Bug/view.php?id=11785 ====================================================================== Reported By: Peter Kuemmel Assigned To: ====================================================================== Project: CMake Issue ID: 11785 Category: (No Category) Reproducibility: always Severity: major Priority: normal Status: new ====================================================================== Date Submitted: 2011-02-02 09:50 EST Last Modified: 2011-02-02 09:50 EST ====================================================================== Summary: CPack no stripping with MinGW and NSIS Description: 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") http://www.cmake.org/pipermail/cmake/2011-February/042436.html Additional Information: The problem is a missing slash in the generated install rule in cmake_install.cmake: IF(CMAKE_INSTALL_DO_STRIP) EXECUTE_PROCESS(COMMAND ".../strip.exe" "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}...") ENDIF(CMAKE_INSTALL_DO_STRIP) DESTDIR is a path without a slash at the end. Attached patch helps, but I don't know if this ts the right place to add the fix. Better would be when the if checks if the unpacked variable starts with a slash. Or maybe checking CPACK_TEMPORARY_INSTALL_DIRECTORY? ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2011-02-02 09:50 Peter Kuemmel New Issue 2011-02-02 09:50 Peter Kuemmel File Added: destdir_slash.patch ====================================================================== _______________________________________________ cmake-developers mailing list [email protected] http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
