summaryrefslogtreecommitdiffstats
path: root/Source/cmake.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/cmake.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/cmake.cxx')
-rw-r--r--Source/cmake.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 2361ce2..8393cd3 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -3331,6 +3331,10 @@ int cmake::Build(int jobs, std::string dir, std::vector<std::string> targets,
buildOptions.Clean = *expandedPreset->CleanFirst;
}
+ if (expandedPreset->ResolvePackageReferences) {
+ buildOptions.ResolveMode = *expandedPreset->ResolvePackageReferences;
+ }
+
if (!verbose && expandedPreset->Verbose) {
verbose = *expandedPreset->Verbose;
}