diff --git a/src/plugins/cmakeprojectmanager/cmakeproject.cpp b/src/plugins/cmakeprojectmanager/cmakeproject.cpp index d98539969af..d38e5a30825 100644 --- a/src/plugins/cmakeprojectmanager/cmakeproject.cpp +++ b/src/plugins/cmakeprojectmanager/cmakeproject.cpp @@ -80,9 +80,10 @@ CMakeProject::~CMakeProject() // TODO make this function work even if it is reparsing void CMakeProject::parseCMakeLists(const QDir &directory) { - createCbpFile(directory); + QDir buildDirectory(directory.absolutePath() + "/qtcreator-build"); + createCbpFile(buildDirectory); - QString cbpFile = findCbpFile(directory); + QString cbpFile = findCbpFile(buildDirectory); CMakeCbpParser cbpparser; qDebug()<<"Parsing file "<