forked from qt-creator/qt-creator
CMake: Fix missing run of CMake after saving sub-CMakeLists.txt
If you have a project with subdirs, changing and saving on of the subdirs CMakeLists.txt would just "reparse" the existing project data again. Instead run CMake first, so the change actually takes effect. Change-Id: Ia2b0f8b5681f10d426229470fdc420b3234eccec Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -781,7 +781,7 @@ void CMakeBuildSystem::wireUpConnections()
|
|||||||
if (cmake && cmake->isAutoRun()) {
|
if (cmake && cmake->isAutoRun()) {
|
||||||
qCDebug(cmakeBuildSystemLog) << "Requesting parse due to dirty project file";
|
qCDebug(cmakeBuildSystemLog) << "Requesting parse due to dirty project file";
|
||||||
setParametersAndRequestParse(BuildDirParameters(cmakeBuildConfiguration()),
|
setParametersAndRequestParse(BuildDirParameters(cmakeBuildConfiguration()),
|
||||||
CMakeBuildSystem::REPARSE_DEFAULT);
|
CMakeBuildSystem::REPARSE_FORCE_CMAKE_RUN);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user