forked from qt-creator/qt-creator
CMake: Code cosmetics
- use newer approach to settings page layout building - no SHOUTING enums - namespaces - proper dialog parent for message Change-Id: I7adfb7487d502b8fd706c4a0c5645f4d2153e39c Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -655,7 +655,7 @@ QVariant CMakeGeneratorKitAspect::defaultValue(const Kit *k) const
|
||||
Internal::CMakeSpecificSettings *settings
|
||||
= Internal::CMakeProjectPlugin::projectTypeSpecificSettings();
|
||||
|
||||
if (settings->ninjaPath().isEmpty()) {
|
||||
if (settings->ninjaPath.filePath().isEmpty()) {
|
||||
Utils::Environment env = Utils::Environment::systemEnvironment();
|
||||
k->addToEnvironment(env);
|
||||
return !env.searchInPath("ninja").isEmpty();
|
||||
|
||||
Reference in New Issue
Block a user