From 242d19c19d8f3cb4cc548d849bc2bbcea9377035 Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 31 Mar 2023 16:52:22 +0200 Subject: [PATCH] CMakeProjectManager: Give some hints why deployment data looks wrong Change-Id: If42b32ca80f4144b86ff882e0db243ba9f0f5cbf Reviewed-by: Cristian Adam Reviewed-by: --- src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp | 8 ++++++-- src/plugins/cmakeprojectmanager/cmakebuildsystem.h | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp b/src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp index ebc41fea787..02d1ca22532 100644 --- a/src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp +++ b/src/plugins/cmakeprojectmanager/cmakebuildsystem.cpp @@ -747,7 +747,11 @@ void CMakeBuildSystem::handleParsingSucceeded(bool restoredFromBackup) m_ctestPath = tool->cmakeExecutable().withNewPath(m_reader.ctestPath()); setApplicationTargets(appTargets()); - setDeploymentData(deploymentData()); + + // Note: This is practically always wrong and resulting in an empty view. + // Setting the real data is triggered from a successful run of a + // MakeInstallStep. + setDeploymentData(deploymentDataFromFile()); QTC_ASSERT(m_waitingForParse, return ); m_waitingForParse = false; @@ -1064,7 +1068,7 @@ CommandLine CMakeBuildSystem::commandLineForTests(const QList &tests, return {m_ctestPath, args}; } -DeploymentData CMakeBuildSystem::deploymentData() const +DeploymentData CMakeBuildSystem::deploymentDataFromFile() const { DeploymentData result; diff --git a/src/plugins/cmakeprojectmanager/cmakebuildsystem.h b/src/plugins/cmakeprojectmanager/cmakebuildsystem.h index 802921f04b8..f3b26b8b4f6 100644 --- a/src/plugins/cmakeprojectmanager/cmakebuildsystem.h +++ b/src/plugins/cmakeprojectmanager/cmakebuildsystem.h @@ -67,7 +67,7 @@ public: const QList appTargets() const; QStringList buildTargetTitles() const; const QList &buildTargets() const; - ProjectExplorer::DeploymentData deploymentData() const; + ProjectExplorer::DeploymentData deploymentDataFromFile() const; CMakeBuildConfiguration *cmakeBuildConfiguration() const;