summaryrefslogtreecommitdiffstats
path: root/cmake/QtAppHelpers.cmake
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2021-07-07 16:04:17 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2021-07-09 09:44:58 +0200
commit7b3d9efc042bec4ce23a6e75553cced3d14d1542 (patch)
tree8cbdb7ce2ecb08d31a959c09d4c9d28d93c0080d /cmake/QtAppHelpers.cmake
parentd2e88b8094db0bda6b3ab89172352861ae18d301 (diff)
CMake: Place internal apps in the correct output directory
In a -debug-and-release build, apps were placed under bin/Release rather than just bin. Apply the logic we use for tools for apps as well. Rename and move the common functions into QtTargetHelpers.cmake. Pick-to: 6.2 Fixes: QTBUG-95028 Change-Id: I5a9082ea50c9238c8fcf0c6dd099708fbc571bf8 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'cmake/QtAppHelpers.cmake')
-rw-r--r--cmake/QtAppHelpers.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/QtAppHelpers.cmake b/cmake/QtAppHelpers.cmake
index c40488cc66..4301b7e480 100644
--- a/cmake/QtAppHelpers.cmake
+++ b/cmake/QtAppHelpers.cmake
@@ -40,6 +40,7 @@ function(qt_internal_add_app target)
)
qt_internal_add_target_aliases("${target}")
_qt_internal_apply_strict_cpp("${target}")
+ qt_internal_adjust_main_config_runtime_output_dir("${target}" "${output_directory}")
# To mimic the default behaviors of qt_app.prf, we by default enable GUI Windows applications,
# but don't enable macOS bundles.