forked from qt-creator/qt-creator
CMake: honor use jom instead of nmake setting
Only search for the jom cmake generator if this setting is enabled. Change-Id: Id8eed91d47f1f6ca2375fe0d169b21168c5ca4ff Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -33,10 +33,12 @@
|
|||||||
#include <app/app_version.h>
|
#include <app/app_version.h>
|
||||||
#include <coreplugin/icore.h>
|
#include <coreplugin/icore.h>
|
||||||
#include <coreplugin/variablechooser.h>
|
#include <coreplugin/variablechooser.h>
|
||||||
#include <projectexplorer/task.h>
|
|
||||||
#include <projectexplorer/toolchain.h>
|
|
||||||
#include <projectexplorer/kit.h>
|
#include <projectexplorer/kit.h>
|
||||||
#include <projectexplorer/kitinformation.h>
|
#include <projectexplorer/kitinformation.h>
|
||||||
|
#include <projectexplorer/projectexplorer.h>
|
||||||
|
#include <projectexplorer/projectexplorersettings.h>
|
||||||
|
#include <projectexplorer/task.h>
|
||||||
|
#include <projectexplorer/toolchain.h>
|
||||||
#include <qtsupport/baseqtversion.h>
|
#include <qtsupport/baseqtversion.h>
|
||||||
#include <qtsupport/qtkitinformation.h>
|
#include <qtsupport/qtkitinformation.h>
|
||||||
#include <projectexplorer/projectexplorerconstants.h>
|
#include <projectexplorer/projectexplorerconstants.h>
|
||||||
@@ -643,6 +645,21 @@ QVariant CMakeGeneratorKitAspect::defaultValue(const Kit *k) const
|
|||||||
return g.matches("NMake Makefiles", extraGenerator)
|
return g.matches("NMake Makefiles", extraGenerator)
|
||||||
|| g.matches("NMake Makefiles JOM", extraGenerator);
|
|| g.matches("NMake Makefiles JOM", extraGenerator);
|
||||||
});
|
});
|
||||||
|
if (ProjectExplorerPlugin::projectExplorerSettings().useJom) {
|
||||||
|
it = std::find_if(known.constBegin(),
|
||||||
|
known.constEnd(),
|
||||||
|
[extraGenerator](const CMakeTool::Generator &g) {
|
||||||
|
return g.matches("NMake Makefiles JOM", extraGenerator);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
if (it == known.constEnd()) {
|
||||||
|
it = std::find_if(known.constBegin(),
|
||||||
|
known.constEnd(),
|
||||||
|
[extraGenerator](const CMakeTool::Generator &g) {
|
||||||
|
return g.matches("NMake Makefiles", extraGenerator);
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Unix-oid OSes:
|
// Unix-oid OSes:
|
||||||
|
Reference in New Issue
Block a user