forked from qt-creator/qt-creator
Qmake: Do not warn if build directory is child of source dir
We changed the default build directory to be in a "build" subdirectory of the source directory, which should not trigger this warning. Fixes: QTCREATORBUG-30562 Change-Id: Ie9e6906602844fa08c187b92423839484a1cea92 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -372,7 +372,8 @@ QString QmakeBuildConfiguration::unalignedBuildDirWarning()
|
|||||||
bool QmakeBuildConfiguration::isBuildDirAtSafeLocation(const FilePath &sourceDir,
|
bool QmakeBuildConfiguration::isBuildDirAtSafeLocation(const FilePath &sourceDir,
|
||||||
const FilePath &buildDir)
|
const FilePath &buildDir)
|
||||||
{
|
{
|
||||||
return buildDir.path().count('/') == sourceDir.path().count('/');
|
return buildDir.path().count('/') == sourceDir.path().count('/')
|
||||||
|
|| buildDir.isChildOf(sourceDir);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool QmakeBuildConfiguration::isBuildDirAtSafeLocation() const
|
bool QmakeBuildConfiguration::isBuildDirAtSafeLocation() const
|
||||||
|
Reference in New Issue
Block a user