forked from qt-creator/qt-creator
Merge remote branch 'origin/2.2'
This commit is contained in:
@@ -286,6 +286,10 @@ bool CMakeProject::parseCMakeLists()
|
||||
return true;
|
||||
|
||||
QStringList allIncludePaths;
|
||||
// This explicitly adds -I. to the include paths
|
||||
allIncludePaths.append(projectDirectory());
|
||||
allIncludePaths.append(cbpparser.includeFiles());
|
||||
|
||||
QStringList allFrameworkPaths;
|
||||
QList<ProjectExplorer::HeaderPath> allHeaderPaths = activeBC->toolChain()->systemHeaderPaths();
|
||||
foreach (const ProjectExplorer::HeaderPath &headerPath, allHeaderPaths) {
|
||||
@@ -294,10 +298,7 @@ bool CMakeProject::parseCMakeLists()
|
||||
else
|
||||
allIncludePaths.append(headerPath.path());
|
||||
}
|
||||
// This explicitly adds -I. to the include paths
|
||||
allIncludePaths.append(projectDirectory());
|
||||
|
||||
allIncludePaths.append(cbpparser.includeFiles());
|
||||
CPlusPlus::CppModelManagerInterface *modelmanager =
|
||||
CPlusPlus::CppModelManagerInterface::instance();
|
||||
if (modelmanager) {
|
||||
|
||||
@@ -294,6 +294,7 @@ void CMakeSettingsPage::pathCmakeFinished()
|
||||
void CMakeSettingsPage::cmakeFinished(CMakeValidator *cmakeValidator) const
|
||||
{
|
||||
if (cmakeValidator->process) {
|
||||
cmakeValidator->process->waitForFinished();
|
||||
QString response = cmakeValidator->process->readAll();
|
||||
QRegExp versionRegexp(QLatin1String("^cmake version ([\\d\\.]*)"));
|
||||
versionRegexp.indexIn(response);
|
||||
|
||||
Reference in New Issue
Block a user