2008/8/1 Yuri V. Timenkov <[EMAIL PROTECTED]>: > On Thursday 31 July 2008 22:47:10 Bill Hoffman wrote: >> Paul Hatfield wrote: >> > When compiling a binary with CMAKE_BUILD_TYPE as RelWithDebInfo, I >> > verify that the binary has debug symbols, but when I generate an rpm >> > using Cpack the debug symbols are lost. What's causing this? >> >> rpm automatically runs strip on executables. It is not cmake doing this >> but rather the rpm tools. > Not exactly... RPM strips executables (at least versions I'm working with - > 4.4) as part of post-install action. spec generated in CPackRPM.cmake doesn't > contain %install section, so rpm doesn't strip binaries and create debug > package. Look in rpmbuild and cpack logs.
Are you sure about that? Some other user seems to face the same issue with current CPackRPM: http://public.kitware.com/Bug/view.php?id=7435 It may be rpm version _and_ distro dependent, I'll try to check it as soon as possible and add an eventual CPACK_RPM_xxx option var in order to control this. > > Also, you may check for CPACK_STRIP_FILES cpack variable. I wasn't aware of this one. An easy check in order to see if rpmbuild does the "extra" stripping would be to use the ZIP CPack generator and check it's content. -- Erk _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
