summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio10Generator.cxx
diff options
context:
space:
mode:
authorCarsten Rudolph <18394207+crud89@users.noreply.github.com>2022-02-15 09:25:53 (GMT)
committerBrad King <brad.king@kitware.com>2022-02-15 15:20:02 (GMT)
commitf320a31087c4efc07e7d10b621ec45dd0350c83a (patch)
tree19e38afc5f7b43c2bd54575c2b13db8996a719e4 /Source/cmGlobalVisualStudio10Generator.cxx
parente5a5f3b76fd89a8e98c981012714f94a1d984ad8 (diff)
downloadCMake-f320a31087c4efc07e7d10b621ec45dd0350c83a.zip
CMake-f320a31087c4efc07e7d10b621ec45dd0350c83a.tar.gz
CMake-f320a31087c4efc07e7d10b621ec45dd0350c83a.tar.bz2
cmake --build: prioritize --resolve-package-references over preset
Fixes: #23224
Diffstat (limited to 'Source/cmGlobalVisualStudio10Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio10Generator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGlobalVisualStudio10Generator.cxx b/Source/cmGlobalVisualStudio10Generator.cxx
index a96f6f0..db54b86 100644
--- a/Source/cmGlobalVisualStudio10Generator.cxx
+++ b/Source/cmGlobalVisualStudio10Generator.cxx
@@ -1222,7 +1222,7 @@ cmGlobalVisualStudio10Generator::GenerateBuildCommand(
"Studio 2017 and later. You have to manually restore the "
"packages using NuGet before building the project.");
restorePackages = false;
- } else if (restoreMode == PackageResolveMode::FromCacheVariable) {
+ } else if (restoreMode == PackageResolveMode::Default) {
// Decide if a restore is performed, based on a cache variable.
if (cmValue cached =
this->CMakeInstance->GetState()->GetCacheEntryValue(