summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudioVersionedGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-05-10 19:48:27 (GMT)
committerBrad King <brad.king@kitware.com>2023-05-17 15:59:24 (GMT)
commit406a103318ee58774ae7afd25d6746a5629f956a (patch)
treec3e0f968aa86a9274babd189662cb58ce3334c06 /Source/cmGlobalVisualStudioVersionedGenerator.h
parentd9641980d2a223e0a6fe42ff23499e55f49fd6d5 (diff)
downloadCMake-406a103318ee58774ae7afd25d6746a5629f956a.zip
CMake-406a103318ee58774ae7afd25d6746a5629f956a.tar.gz
CMake-406a103318ee58774ae7afd25d6746a5629f956a.tar.bz2
VS: Add support for C++ module internal partitions in VS 17.6 and newer
VS 17.6 now implements `ScanSourceforModuleDependencies` using the same `cl /scanDependencies` scanner that our Ninja generator uses. It can distinguish module internal partitions from module interface units based on their content. Switch from `CompileAsCppModule` to `CompileAsCpp` for `CXX_MODULES` sources so that MSBuild can scan and classify them.
Diffstat (limited to 'Source/cmGlobalVisualStudioVersionedGenerator.h')
-rw-r--r--Source/cmGlobalVisualStudioVersionedGenerator.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudioVersionedGenerator.h b/Source/cmGlobalVisualStudioVersionedGenerator.h
index fb4b1d7..558ea7c 100644
--- a/Source/cmGlobalVisualStudioVersionedGenerator.h
+++ b/Source/cmGlobalVisualStudioVersionedGenerator.h
@@ -44,6 +44,8 @@ public:
bool IsUtf8EncodingSupported() const override;
+ bool IsScanDependenciesSupported() const override;
+
const char* GetAndroidApplicationTypeRevision() const override;
bool CheckCxxModuleSupport() override