forked from qt-creator/qt-creator
CMakeProjectManager: Support mapping chroot include paths
Provide a way for plugins to map include paths into a build chroot. Plugins can register a path mapper if required, otherwise the paths are not touched. Change-Id: I621982831fa354d6d0f558a6c1dce4e014421f12 Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
This commit is contained in:
@@ -246,12 +246,14 @@ bool CMakeProject::parseCMakeLists()
|
||||
return false;
|
||||
}
|
||||
|
||||
Kit *k = activeTarget()->kit();
|
||||
|
||||
// setFolderName
|
||||
m_rootNode->setDisplayName(QFileInfo(cbpFile).completeBaseName());
|
||||
CMakeCbpParser cbpparser;
|
||||
// Parsing
|
||||
//qDebug()<<"Parsing file "<<cbpFile;
|
||||
if (!cbpparser.parseCbpFile(cbpFile, projectDirectory().toString())) {
|
||||
if (!cbpparser.parseCbpFile(k,cbpFile, projectDirectory().toString())) {
|
||||
// TODO report error
|
||||
emit buildTargetsChanged();
|
||||
return false;
|
||||
@@ -305,7 +307,6 @@ bool CMakeProject::parseCMakeLists()
|
||||
|
||||
createUiCodeModelSupport();
|
||||
|
||||
Kit *k = activeTarget()->kit();
|
||||
ToolChain *tc = ProjectExplorer::ToolChainKitInformation::toolChain(k);
|
||||
if (!tc) {
|
||||
emit buildTargetsChanged();
|
||||
|
||||
Reference in New Issue
Block a user