CMake: Fix compile for gcc 4.7.3

Change-Id: I2f07dc1d47d68786a9d62ab980e5f1e719726132
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
Christian Stenger
2016-03-21 06:38:43 +01:00
parent abbd94e4b9
commit 47f5c13573

View File

@@ -129,7 +129,7 @@ KitConfigWidget *CMakeKitInformation::createConfigWidget(Kit *k) const
void CMakeKitInformation::addToMacroExpander(Kit *k, Utils::MacroExpander *expander) const void CMakeKitInformation::addToMacroExpander(Kit *k, Utils::MacroExpander *expander) const
{ {
expander->registerFileVariables("CMake:Executable", tr("Path to the cmake executable"), expander->registerFileVariables("CMake:Executable", tr("Path to the cmake executable"),
[k]() -> QString { [this, k]() -> QString {
CMakeTool *tool = CMakeKitInformation::cmakeTool(k); CMakeTool *tool = CMakeKitInformation::cmakeTool(k);
return tool ? tool->cmakeExecutable().toString() : QString(); return tool ? tool->cmakeExecutable().toString() : QString();
}); });