forked from qt-creator/qt-creator
BaseQtVersion: Rename isInSourceDirectory to isSubProject and fix it
The source and examples directory is not a sub directory of the qt source directory in the sdks. But we still want to treat it as part of a the matching qt. Task-number: QTCREATORBUG-13469 Change-Id: Ib63722052a14c29e4198c879dd770fb4ecdcdb80 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -651,7 +651,7 @@ QmakeBuildInfo *QmakeBuildConfigurationFactory::createBuildInfo(const Kit *k,
|
||||
|
||||
// check if this project is in the source directory:
|
||||
Utils::FileName projectFilePath = Utils::FileName::fromString(projectPath);
|
||||
if (version->isInSourceDirectory(projectFilePath)) {
|
||||
if (version->isSubProject(projectFilePath)) {
|
||||
// assemble build directory
|
||||
QString projectDirectory = projectFilePath.toFileInfo().absolutePath();
|
||||
QDir qtSourceDir = QDir(version->sourcePath().toString());
|
||||
|
||||
Reference in New Issue
Block a user