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