diff options
author | Carsten Rudolph <18394207+crud89@users.noreply.github.com> | 2022-01-22 09:12:25 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-01-22 11:35:41 (GMT) |
commit | 9aa7831f05e924830848822aecdb43aa7261bc11 (patch) | |
tree | 8764b548493b8ce44b29310cae62d53ef314649b /Source/cmGlobalVisualStudio10Generator.cxx | |
parent | b2f8f0bb87b3b49a39d1db4333bffc5405166245 (diff) | |
download | CMake-9aa7831f05e924830848822aecdb43aa7261bc11.zip CMake-9aa7831f05e924830848822aecdb43aa7261bc11.tar.gz CMake-9aa7831f05e924830848822aecdb43aa7261bc11.tar.bz2 |
Presets: add resolve packages setting to build presets.
Diffstat (limited to 'Source/cmGlobalVisualStudio10Generator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudio10Generator.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudio10Generator.cxx b/Source/cmGlobalVisualStudio10Generator.cxx index 6b060a6..e9824fb 100644 --- a/Source/cmGlobalVisualStudio10Generator.cxx +++ b/Source/cmGlobalVisualStudio10Generator.cxx @@ -724,6 +724,10 @@ void cmGlobalVisualStudio10Generator::Generate() /* clang-format on */ lg->IssueMessage(MessageType::WARNING, e.str()); } + if (cmValue cached = this->CMakeInstance->GetState()->GetCacheEntryValue( + "CMAKE_VS_NUGET_PACKAGE_RESTORE")) { + this->CMakeInstance->MarkCliAsUsed("CMAKE_VS_NUGET_PACKAGE_RESTORE"); + } } void cmGlobalVisualStudio10Generator::EnableLanguage( |