cmExperimental.h 869 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. #include <vector>
  7. class cmMakefile;
  8. class cmExperimental
  9. {
  10. public:
  11. enum class Feature
  12. {
  13. WindowsKernelModeDriver,
  14. Sentinel,
  15. };
  16. enum class TryCompileCondition
  17. {
  18. Always,
  19. SkipCompilerChecks,
  20. Never,
  21. };
  22. struct FeatureData
  23. {
  24. std::string const Name;
  25. std::string const Uuid;
  26. std::string const Variable;
  27. std::string const Description;
  28. std::vector<std::string> const TryCompileVariables;
  29. TryCompileCondition const ForwardThroughTryCompile;
  30. bool Warned;
  31. };
  32. static const FeatureData& DataForFeature(Feature f);
  33. static bool HasSupportEnabled(cmMakefile const& mf, Feature f);
  34. };