From 733279e01769857e684a4f4cc562ae68a79015f5 Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Thu, 13 Jul 2023 19:36:33 +0200 Subject: [PATCH] CMakeProjectManager: Deselect "Stage for installation" for WebAssembly There is no CMake install target for WebAssembly. Therefore, the "Stage for installation" option needs to be deseleceted, like it is being done for Android and iOS. Amends: 2387e9e37aeb5b4acf6b2b1bdb1f8f047e23c1d4 Fixes: QTCREATORBUG-29293 Change-Id: I954dc492259b7211d3dc68047dbb6d7a8e6579b9 Reviewed-by: hjk --- src/plugins/cmakeprojectmanager/cmakebuildstep.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/cmakeprojectmanager/cmakebuildstep.cpp b/src/plugins/cmakeprojectmanager/cmakebuildstep.cpp index 9e4a705fb54..c5b130dbecd 100644 --- a/src/plugins/cmakeprojectmanager/cmakebuildstep.cpp +++ b/src/plugins/cmakeprojectmanager/cmakebuildstep.cpp @@ -16,6 +16,8 @@ #include +#include + #include #include #include @@ -185,7 +187,8 @@ static bool supportsStageForInstallation(const Kit *kit) QTC_ASSERT(buildDevice, return false); return runDevice->id() != buildDevice->id() && runDevice->type() != Android::Constants::ANDROID_DEVICE_TYPE - && runDevice->type() != Ios::Constants::IOS_DEVICE_TYPE; + && runDevice->type() != Ios::Constants::IOS_DEVICE_TYPE + && runDevice->type() != WebAssembly::Constants::WEBASSEMBLY_DEVICE_TYPE; } CMakeBuildStep::CMakeBuildStep(BuildStepList *bsl, Id id) :