cmExperimental.h 713 B

1234567891011121314151617181920212223242526272829303132333435
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #pragma once
  4. #include "cmConfigure.h" // IWYU pragma: keep
  5. #include <string>
  6. class cmMakefile;
  7. class cmExperimental
  8. {
  9. public:
  10. enum class Feature
  11. {
  12. CxxModuleCMakeApi,
  13. WindowsKernelModeDriver,
  14. Sentinel,
  15. };
  16. struct FeatureData
  17. {
  18. std::string const Name;
  19. std::string const Uuid;
  20. std::string const Variable;
  21. std::string const Description;
  22. bool const ForwardThroughTryCompile;
  23. bool Warned;
  24. };
  25. static const FeatureData& DataForFeature(Feature f);
  26. static bool HasSupportEnabled(cmMakefile const& mf, Feature f);
  27. };