summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2020-09-28 18:17:40 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2020-09-30 16:16:00 +0200
commit2044992eed3e48909d17a4304ea25d3007d94d60 (patch)
tree56dbfc24623a3f063dd3da1afae55263cc1a7ecc /bin
parent2e27b98cffcd96d4e1d8a0b5836a36dc9929f676 (diff)
CMake: Strip binaries and libraries upon installation
To avoid big artifact sizes, strip the binaries and libraries upon installation. This achieves stripping similar to QTBUG-69767 and QTBUG-81301 but arguably in a cleaner CMake way. See comment on PS34 of the unmerged commit 90b09fee44b08b65a436fd15fda2526e242f7b21 for details. Task-number: QTBUG-86053 Change-Id: I3ed929a8a7c74b88c480543212fc9551d8bde77f Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'bin')
-rw-r--r--bin/qt-cmake-private-install.cmake.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/qt-cmake-private-install.cmake.in b/bin/qt-cmake-private-install.cmake.in
index bc9895791b..6d6f3f0f0e 100644
--- a/bin/qt-cmake-private-install.cmake.in
+++ b/bin/qt-cmake-private-install.cmake.in
@@ -9,7 +9,7 @@ if(NOT QT_BUILD_DIR)
endif()
foreach(config ${configs})
message(STATUS "Installing configuration: '${config}'")
- set(args "${CMAKE_COMMAND}" --install ${QT_BUILD_DIR} --config "${config}")
+ set(args "${CMAKE_COMMAND}" --install ${QT_BUILD_DIR} --config "${config}" --strip)
execute_process(COMMAND ${args}
COMMAND_ECHO STDOUT
RESULT_VARIABLE result)