summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CXXModules/NoCXX26TargetRequired.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/CXXModules/NoCXX26TargetRequired.cmake')
-rw-r--r--Tests/RunCMake/CXXModules/NoCXX26TargetRequired.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/RunCMake/CXXModules/NoCXX26TargetRequired.cmake b/Tests/RunCMake/CXXModules/NoCXX26TargetRequired.cmake
new file mode 100644
index 0000000..79dcb79
--- /dev/null
+++ b/Tests/RunCMake/CXXModules/NoCXX26TargetRequired.cmake
@@ -0,0 +1,11 @@
+enable_language(CXX)
+set(CMAKE_CXX_SCANDEP_SOURCE "echo")
+
+set(CMAKE_CXX_MODULE_STD 1)
+
+add_library(nocxx26target)
+target_sources(nocxx26target
+ PRIVATE
+ FILE_SET fs TYPE CXX_MODULES FILES
+ sources/module.cxx)
+target_compile_features(nocxx26target PRIVATE cxx_std_26)