diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2022-11-29 14:40:25 +0100 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2022-12-01 08:53:32 +0100 |
commit | 9204ac23a0c0c0f02553323928f3fe31be69b1e2 (patch) | |
tree | c759aeabfecb684384d444daf36c3e8dadb97643 /src/corelib | |
parent | 34d7dd908e135ce2036c4fa7ce3e2099174d4e8c (diff) |
CMake: Don't setup deployment when building Qt without examples
Introduce the variable QT_SKIP_SETUP_DEPLOYMENT to turn off the
generation of deployment support files. Set this variable when building
Qt - but only if we're not building examples.
This avoids a warning about missing patchelf when building Qt with CMake
< 3.21.
Change-Id: I8ff5491eb314ff870c210884fbf90dd4c9ad0219
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/Qt6CoreMacros.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/Qt6CoreMacros.cmake b/src/corelib/Qt6CoreMacros.cmake index bb7df5ed46..a4b17eda99 100644 --- a/src/corelib/Qt6CoreMacros.cmake +++ b/src/corelib/Qt6CoreMacros.cmake @@ -2410,6 +2410,10 @@ endfunction() # Sets up the commands for use at install/deploy time function(_qt_internal_setup_deploy_support) + if(QT_SKIP_SETUP_DEPLOYMENT) + return() + endif() + get_property(cmake_role GLOBAL PROPERTY CMAKE_ROLE) if(NOT cmake_role STREQUAL "PROJECT") return() |