summaryrefslogtreecommitdiffstats
path: root/Source/cmCMakePresetsGraph.cxx
diff options
context:
space:
mode:
authorCarsten Rudolph <18394207+crud89@users.noreply.github.com>2022-01-22 09:12:25 (GMT)
committerBrad King <brad.king@kitware.com>2022-01-22 11:35:41 (GMT)
commit9aa7831f05e924830848822aecdb43aa7261bc11 (patch)
tree8764b548493b8ce44b29310cae62d53ef314649b /Source/cmCMakePresetsGraph.cxx
parentb2f8f0bb87b3b49a39d1db4333bffc5405166245 (diff)
downloadCMake-9aa7831f05e924830848822aecdb43aa7261bc11.zip
CMake-9aa7831f05e924830848822aecdb43aa7261bc11.tar.gz
CMake-9aa7831f05e924830848822aecdb43aa7261bc11.tar.bz2
Presets: add resolve packages setting to build presets.
Diffstat (limited to 'Source/cmCMakePresetsGraph.cxx')
-rw-r--r--Source/cmCMakePresetsGraph.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmCMakePresetsGraph.cxx b/Source/cmCMakePresetsGraph.cxx
index 58dca36..f8e71c9 100644
--- a/Source/cmCMakePresetsGraph.cxx
+++ b/Source/cmCMakePresetsGraph.cxx
@@ -724,6 +724,9 @@ cmCMakePresetsGraph::BuildPreset::VisitPresetInherit(
InheritOptionalValue(preset.CleanFirst, parent.CleanFirst);
InheritOptionalValue(preset.Verbose, parent.Verbose);
InheritVector(preset.NativeToolOptions, parent.NativeToolOptions);
+ if (!preset.ResolvePackageReferences) {
+ preset.ResolvePackageReferences = parent.ResolvePackageReferences;
+ }
return ReadFileResult::READ_OK;
}