forked from qt-creator/qt-creator
CMakePM: Do not use systemEnvironment() for CMakePresets
This doesn't mean that CMakePresets will work with a remote project, but at least it avoids Environment::systemEnvironment() usage. Change-Id: I17081c747d32e50224ac74507d3aa336ff5c8948 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -280,7 +280,7 @@ bool evaluatePresetCondition(const PresetType &preset, const Utils::FilePath &so
|
||||
if (!preset.condition)
|
||||
return true;
|
||||
|
||||
Utils::Environment env = Utils::Environment::systemEnvironment();
|
||||
Utils::Environment env = sourceDirectory.deviceEnvironment();
|
||||
expand(preset, env, sourceDirectory);
|
||||
|
||||
PresetsDetails::Condition condition = preset.condition.value();
|
||||
|
||||
Reference in New Issue
Block a user