forked from qt-creator/qt-creator
CMakePM: Improve cmake default generator setup
Docker images with UNIX on a Windows host should get a proper default generator. This allows to build projects with a default set up kit for docker out of the box without modifying the kit values or the project setup. Change-Id: Ic32e72c28d98a367e71f19d4e1c211ec7a4e613e Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -685,7 +685,7 @@ QVariant CMakeGeneratorKitAspect::defaultValue(const Kit *k) const
|
||||
return GeneratorInfo("Ninja").toVariant();
|
||||
}
|
||||
|
||||
if (HostOsInfo::isWindowsHost()) {
|
||||
if (tool->filePath().osType() == OsTypeWindows) {
|
||||
// *sigh* Windows with its zoo of incompatible stuff again...
|
||||
ToolChain *tc = ToolChainKitAspect::cxxToolChain(k);
|
||||
if (tc && tc->typeId() == ProjectExplorer::Constants::MINGW_TOOLCHAIN_TYPEID) {
|
||||
|
Reference in New Issue
Block a user