diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2024-01-06 20:46:25 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2024-01-09 14:47:47 (GMT) |
commit | 405dc7d19c4e71cf3ac7e4daa93016d2b4665d3c (patch) | |
tree | 90aeeaed5f972269bf2f42c6c3b61da4920ddffe /Tests/RunCMake | |
parent | 029ddc341055b6eeee0c90ed843cf4b56e10a0e9 (diff) | |
download | CMake-405dc7d19c4e71cf3ac7e4daa93016d2b4665d3c.zip CMake-405dc7d19c4e71cf3ac7e4daa93016d2b4665d3c.tar.gz CMake-405dc7d19c4e71cf3ac7e4daa93016d2b4665d3c.tar.bz2 |
Tests/CXXModules/scan_properties: use `ixx` extension
This ensures that Visual Studio is told not to scan this explicitly.
Diffstat (limited to 'Tests/RunCMake')
-rw-r--r-- | Tests/RunCMake/CXXModules/examples/scan_properties/CMakeLists.txt | 8 | ||||
-rw-r--r-- | Tests/RunCMake/CXXModules/examples/scan_properties/never_scan.ixx (renamed from Tests/RunCMake/CXXModules/examples/scan_properties/never_scan.cxx) | 0 |
2 files changed, 5 insertions, 3 deletions
diff --git a/Tests/RunCMake/CXXModules/examples/scan_properties/CMakeLists.txt b/Tests/RunCMake/CXXModules/examples/scan_properties/CMakeLists.txt index 47be1d9..110e411 100644 --- a/Tests/RunCMake/CXXModules/examples/scan_properties/CMakeLists.txt +++ b/Tests/RunCMake/CXXModules/examples/scan_properties/CMakeLists.txt @@ -18,8 +18,10 @@ string(REPLACE "<DEFINES>" "<DEFINES> -DCMAKE_SCANNED_THIS_SOURCE" set_property(SOURCE always_scan.cxx PROPERTY CXX_SCAN_FOR_MODULES 1) -set_property(SOURCE never_scan.cxx +set_property(SOURCE never_scan.ixx PROPERTY CXX_SCAN_FOR_MODULES 0) +set_property(SOURCE never_scan.ixx + PROPERTY LANGUAGE CXX) add_executable(scans_everything) target_sources(scans_everything @@ -27,7 +29,7 @@ target_sources(scans_everything main.cxx join.cxx always_scan.cxx - never_scan.cxx + never_scan.ixx PRIVATE FILE_SET CXX_MODULES BASE_DIRS @@ -46,7 +48,7 @@ target_sources(no_scan_everything main.cxx join.cxx always_scan.cxx - never_scan.cxx + never_scan.ixx PRIVATE FILE_SET CXX_MODULES BASE_DIRS diff --git a/Tests/RunCMake/CXXModules/examples/scan_properties/never_scan.cxx b/Tests/RunCMake/CXXModules/examples/scan_properties/never_scan.ixx index b47510b..b47510b 100644 --- a/Tests/RunCMake/CXXModules/examples/scan_properties/never_scan.cxx +++ b/Tests/RunCMake/CXXModules/examples/scan_properties/never_scan.ixx |