summaryrefslogtreecommitdiff
path: root/Source/cmGlobalVisualStudioVersionedGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-12-07 17:47:43 -0500
committerBrad King <brad.king@kitware.com>2022-12-07 17:49:04 -0500
commit5ce0f03cce95fc78af766ca3e54bbab392cbb0d5 (patch)
tree6464527a909e7758eb8d2ce184d7aabec6e21f59 /Source/cmGlobalVisualStudioVersionedGenerator.h
parent55529c5e93f2a15d16ab90b799d5ab75c28d0422 (diff)
downloadcmake-5ce0f03cce95fc78af766ca3e54bbab392cbb0d5.tar.gz
VS: Add a variable to report the Visual Studio version build number
VS 2017 and above come with a Visual Studio Installer tool that tracks four-component Visual Studio version numbers. We already detect the VS version number because it is needed to make some generation decisions. Provide the number to projects in a `CMAKE_VS_VERSION_BUILD_NUMBER` variable so they can use it similarly. Fixes: #24230
Diffstat (limited to 'Source/cmGlobalVisualStudioVersionedGenerator.h')
-rw-r--r--Source/cmGlobalVisualStudioVersionedGenerator.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudioVersionedGenerator.h b/Source/cmGlobalVisualStudioVersionedGenerator.h
index 4c69aeb2ed..45aca74a80 100644
--- a/Source/cmGlobalVisualStudioVersionedGenerator.h
+++ b/Source/cmGlobalVisualStudioVersionedGenerator.h
@@ -93,6 +93,7 @@ private:
mutable cmVSSetupAPIHelper vsSetupAPIHelper;
bool ParseGeneratorInstance(std::string const& is, cmMakefile* mf);
+ void SetVSVersionVar(cmMakefile* mf);
std::string GeneratorInstance;
std::string GeneratorInstanceVersion;