summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2022-05-24 21:20:42 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2022-06-14 23:27:30 (GMT)
commitff30a5397d804b9de564d54868bd5fdf504361c2 (patch)
tree7e11794498c6fc46f9f2af1ee00b25432ac866e6 /Source
parentfb289dfcd9be3ceb9dcca20b3f51b779d77e01ee (diff)
downloadCMake-ff30a5397d804b9de564d54868bd5fdf504361c2.zip
CMake-ff30a5397d804b9de564d54868bd5fdf504361c2.tar.gz
CMake-ff30a5397d804b9de564d54868bd5fdf504361c2.tar.bz2
cmExperimental: add an experimental feature to handle C++ modules
Diffstat (limited to 'Source')
-rw-r--r--Source/cmExperimental.cxx9
-rw-r--r--Source/cmExperimental.h2
2 files changed, 10 insertions, 1 deletions
diff --git a/Source/cmExperimental.cxx b/Source/cmExperimental.cxx
index 5689714..e815d0e 100644
--- a/Source/cmExperimental.cxx
+++ b/Source/cmExperimental.cxx
@@ -25,7 +25,14 @@ struct FeatureData
std::string const Variable;
std::string const Description;
bool Warned;
-} LookupTable[] = {};
+} LookupTable[] = {
+ // CxxModuleCMakeApi
+ { "17be90bd-a850-44e0-be50-448de847d652",
+ "CMAKE_EXPERIMENTAL_CXX_MODULE_CMAKE_API",
+ "CMake's C++ module support is experimental. It is meant only for "
+ "experimentation and feedback to CMake developers.",
+ false },
+};
static_assert(sizeof(LookupTable) / sizeof(LookupTable[0]) ==
static_cast<size_t>(cmExperimental::Feature::Sentinel),
"Experimental feature lookup table mismatch");
diff --git a/Source/cmExperimental.h b/Source/cmExperimental.h
index c2df019..26e0d17 100644
--- a/Source/cmExperimental.h
+++ b/Source/cmExperimental.h
@@ -12,6 +12,8 @@ class cmExperimental
public:
enum class Feature
{
+ CxxModuleCMakeApi,
+
Sentinel,
};