forked from qt-creator/qt-creator
CMakePM: Add project CMake settings support
This is useful if projects do not to have "Auto Run" CMake or want to have Junctions enabled. Change-Id: I4a636e7bf64fe2d29d15d39fe9aa46807684c716 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -665,7 +665,7 @@ QVariant CMakeGeneratorKitAspectFactory::defaultValue(const Kit *k) const
|
||||
});
|
||||
if (it != known.constEnd()) {
|
||||
const bool hasNinja = [k, tool] {
|
||||
if (Internal::settings().ninjaPath().isEmpty()) {
|
||||
if (Internal::settings(nullptr).ninjaPath().isEmpty()) {
|
||||
auto findNinja = [](const Environment &env) -> bool {
|
||||
return !env.searchInPath("ninja").isEmpty();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user