From e48e5e5506e9d55e3ea634c9cbe9051a35046b2a Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Fri, 16 Feb 2024 07:10:24 -0500 Subject: Tests/CXXModules: document `CMake_TEST_MODULE_COMPILATION` items --- Tests/RunCMake/CXXModules/RunCMakeTest.cmake | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Tests/RunCMake/CXXModules/RunCMakeTest.cmake b/Tests/RunCMake/CXXModules/RunCMakeTest.cmake index 421c509..533a99a 100644 --- a/Tests/RunCMake/CXXModules/RunCMakeTest.cmake +++ b/Tests/RunCMake/CXXModules/RunCMakeTest.cmake @@ -168,6 +168,18 @@ function (run_cxx_module_test_rebuild directory) run_cxx_module_test("${directory}" ${ARGN}) endfunction () +# Module compilation features: +# Compiler-based: +# - `named`: basic support for named modules is available +# - `shared`: shared libraries are supported +# - `partitions`: module partitions are supported +# - `internal_partitions`: internal module partitions are supported +# - `bmionly`: the compiler supports BMI-only builds +# +# Generator-based: +# - `compile_commands`: the generator supports `compile_commands.json` +# - `collation`: the generator supports module collation features +# - `export_bmi`: the generator supports exporting BMIs string(REPLACE "," ";" CMake_TEST_MODULE_COMPILATION "${CMake_TEST_MODULE_COMPILATION}") if (RunCMake_GENERATOR MATCHES "Ninja") -- cgit v0.12