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>
This commit is contained in:
parent
2e27b98cff
commit
2044992eed
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user