[cmake-commits] alex committed gcc.cmake 1.14 1.14.4.1
cmake-commits at cmake.org
cmake-commits at cmake.org
Mon May 14 16:28:09 EDT 2007
Update of /cvsroot/CMake/CMake/Modules/Platform
In directory public:/mounts/ram/cvs-serv738/Modules/Platform
Modified Files:
Tag: CMake-CrossCompileBasic
gcc.cmake
Log Message:
ENH: move stripping from cpack to cmake/install time, fully configurable via
the CMAKE_STRIP_FILE rule, currently only implemented for the GNU toolchain.
Now cpack should work also for cross compiling (since it doesn't have to
know the executable suffix anymore).
stripping can be enabled/disabled via the cache variable CMAKE_INSTALL_DO_STRIP.
Even if this is disabled, the cmake_install.cmake files still contain the
strip rules, so by running cmake -DCMAKE_INSTALL_DO_STRIP=1
cmake_install.cmake you can install with stripping also in this case.
Alex
Index: gcc.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/Platform/gcc.cmake,v
retrieving revision 1.14
retrieving revision 1.14.4.1
diff -u -d -r1.14 -r1.14.4.1
--- gcc.cmake 19 Feb 2007 18:53:25 -0000 1.14
+++ gcc.cmake 14 May 2007 20:28:07 -0000 1.14.4.1
@@ -24,3 +24,6 @@
ENDIF(NOT APPLE)
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
+IF(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
+ SET(CMAKE_STRIP_BINARY "\"${CMAKE_STRIP}\" <BINARY_FULL_INSTALL_PATH>")
+ENDIF(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
More information about the Cmake-commits
mailing list