summaryrefslogtreecommitdiffstats
path: root/.gitlab/ci/configure_windows_vs2022_x64.cmake
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 /.gitlab/ci/configure_windows_vs2022_x64.cmake
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 '.gitlab/ci/configure_windows_vs2022_x64.cmake')
-rw-r--r--.gitlab/ci/configure_windows_vs2022_x64.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/.gitlab/ci/configure_windows_vs2022_x64.cmake b/.gitlab/ci/configure_windows_vs2022_x64.cmake
index 1e0f584..290d380 100644
--- a/.gitlab/ci/configure_windows_vs2022_x64.cmake
+++ b/.gitlab/ci/configure_windows_vs2022_x64.cmake
@@ -1,4 +1,4 @@
-set(CMake_TEST_MODULE_COMPILATION "named,partitions" CACHE STRING "")
+set(CMake_TEST_MODULE_COMPILATION "named,partitions,internal_partitions" CACHE STRING "")
include("${CMAKE_CURRENT_LIST_DIR}/configure_windows_msvc_cxx_modules_common.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/configure_windows_vs_common.cmake")