diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2022-05-24 21:20:42 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2022-06-14 23:27:30 (GMT) |
commit | ff30a5397d804b9de564d54868bd5fdf504361c2 (patch) | |
tree | 7e11794498c6fc46f9f2af1ee00b25432ac866e6 /Source | |
parent | fb289dfcd9be3ceb9dcca20b3f51b779d77e01ee (diff) | |
download | CMake-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.cxx | 9 | ||||
-rw-r--r-- | Source/cmExperimental.h | 2 |
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, }; |