summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudioVersionedGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-12-02 13:23:58 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-12-02 13:24:05 (GMT)
commit399d62db8b5edfa7f0ee9ea4c913b33dedba107b (patch)
treeff67ecc75854e82098f5ed6ff45f7a1a2830c4ec /Source/cmGlobalVisualStudioVersionedGenerator.h
parent3c07549b51d34b155cbfe13599af20736cca789f (diff)
parent52c21cbbda3d3b920fa453213ce86830b66ebb32 (diff)
downloadCMake-399d62db8b5edfa7f0ee9ea4c913b33dedba107b.zip
CMake-399d62db8b5edfa7f0ee9ea4c913b33dedba107b.tar.gz
CMake-399d62db8b5edfa7f0ee9ea4c913b33dedba107b.tar.bz2
Merge topic 'cxxmodules-vs'
52c21cbbda ci: enable C++20 module testing with the VS 2022 generator 2991e92ea7 cmExperimental: recycle C++20 module support UUID 82833fb3c0 Help/dev/experimental: document C++20 module limitations 388acfd46d Tests/RunCMake/CXXModules: add support for Visual Studio 069a32b03c Tests/RunCMake/CXXModules: split out collation-requiring tests ef03a3a2f5 Tests/RunCMake/CXXModules: factor out generator support detection 736123464f Tests/RunCMake/CXXModules: update `NoDyndepSupport` for VS2019 and older 4a4ce031cd Tests/RunCMake/CXXModules: catch VS circular error message ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7972
Diffstat (limited to 'Source/cmGlobalVisualStudioVersionedGenerator.h')
-rw-r--r--Source/cmGlobalVisualStudioVersionedGenerator.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudioVersionedGenerator.h b/Source/cmGlobalVisualStudioVersionedGenerator.h
index 2e573ec..4c69aeb 100644
--- a/Source/cmGlobalVisualStudioVersionedGenerator.h
+++ b/Source/cmGlobalVisualStudioVersionedGenerator.h
@@ -46,6 +46,16 @@ public:
const char* GetAndroidApplicationTypeRevision() const override;
+ bool CheckCxxModuleSupport() override
+ {
+ this->CxxModuleSupportCheck();
+ return this->SupportsCxxModuleDyndep();
+ }
+ bool SupportsCxxModuleDyndep() const override
+ {
+ return this->Version >= cmGlobalVisualStudioGenerator::VSVersion::VS17;
+ }
+
protected:
cmGlobalVisualStudioVersionedGenerator(
VSVersion version, cmake* cm, const std::string& name,