aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cmakeprojectmanager
diff options
context:
space:
mode:
authorMarcus Tillmanns <marcus.tillmanns@qt.io>2024-04-02 10:28:57 +0200
committerMarcus Tillmanns <marcus.tillmanns@qt.io>2024-04-04 05:37:11 +0000
commit24511d755f1cc94e5d30403782d7a48a8487509b (patch)
tree23d86191cff47b715977bc2ad73f0ff376ce9c47 /src/plugins/cmakeprojectmanager
parent0cca4b283b4a6daa1cad05b3dddd0010437f998c (diff)
CMake: Add hint about missing docker mounts
Change-Id: Id046496b1c9907dfdfedb36c6bec1b121428f37a Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Diffstat (limited to 'src/plugins/cmakeprojectmanager')
-rw-r--r--src/plugins/cmakeprojectmanager/cmakeprocess.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/plugins/cmakeprojectmanager/cmakeprocess.cpp b/src/plugins/cmakeprojectmanager/cmakeprocess.cpp
index 40cc41d64a..c0a41b817d 100644
--- a/src/plugins/cmakeprojectmanager/cmakeprocess.cpp
+++ b/src/plugins/cmakeprojectmanager/cmakeprocess.cpp
@@ -58,11 +58,15 @@ void CMakeProcess::run(const BuildDirParameters &parameters, const QStringList &
const FilePath cmakeExecutable = cmake->cmakeExecutable();
+ const QString mountHint = ::CMakeProjectManager::Tr::tr(
+ "You may need to add the project directory to the list of directories that are mounted by "
+ "the build device.");
+
if (!cmakeExecutable.ensureReachable(parameters.sourceDirectory)) {
const QString msg = ::CMakeProjectManager::Tr::tr(
"The source directory %1 is not reachable by the CMake executable %2.")
.arg(parameters.sourceDirectory.displayName()).arg(cmakeExecutable.displayName());
- BuildSystem::appendBuildSystemOutput(addCMakePrefix({QString(), msg}).join('\n'));
+ BuildSystem::appendBuildSystemOutput(addCMakePrefix({QString(), msg, mountHint}).join('\n'));
emit finished(failedToStartExitCode);
return;
}
@@ -71,7 +75,7 @@ void CMakeProcess::run(const BuildDirParameters &parameters, const QStringList &
const QString msg = ::CMakeProjectManager::Tr::tr(
"The build directory %1 is not reachable by the CMake executable %2.")
.arg(parameters.buildDirectory.displayName()).arg(cmakeExecutable.displayName());
- BuildSystem::appendBuildSystemOutput(addCMakePrefix({QString(), msg}).join('\n'));
+ BuildSystem::appendBuildSystemOutput(addCMakePrefix({QString(), msg, mountHint}).join('\n'));
emit finished(failedToStartExitCode);
return;
}