cmExperimental.h 995 B

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