CMake: Do not generate build directories with spaces

Fixes: QTCREATORBUG-18442
Change-Id: I35aea2322801086d1ae11d123f53973dff7847be
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Cristian Adam
2018-10-23 16:44:34 +02:00
parent 44205a961e
commit b8c5f918bd

View File

@@ -160,6 +160,7 @@ FileName CMakeBuildConfiguration::shadowBuildDirectory(const FileName &projectFi
ProjectMacroExpander expander(projectFilePath.toString(), projectName, k, bcName, buildType);
QDir projectDir = QDir(Project::projectDirectory(projectFilePath).toString());
QString buildPath = expander.expand(ProjectExplorerPlugin::buildDirectoryTemplate());
buildPath.replace(" ", "-");
return FileName::fromUserInput(projectDir.absoluteFilePath(buildPath));
}