forked from qt-creator/qt-creator
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:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user