mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-09 09:12:00 +00:00
Several problems with this feature came up while testing 4.3.0-rc1.
These include both broken stdlib distributions and regressions in our
implementation of the feature since CMake 4.2.
Revert commit 70c1f0f43d (Experimental: Remove import std experimental
gate, 2026-02-04, v4.3.0-rc1~61^2) except for its incidental fixes.
Remove the 4.3 release notes related to `import std`.
Rotate the experimental gate's UUID.
Issue: #27426
Issue: #27597
Issue: #27626
Issue: #27635
51 lines
1005 B
C++
51 lines
1005 B
C++
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
file LICENSE.rst or https://cmake.org/licensing for details. */
|
|
|
|
#pragma once
|
|
|
|
#include "cmConfigure.h" // IWYU pragma: keep
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include <cm/optional>
|
|
|
|
class cmMakefile;
|
|
|
|
class cmExperimental
|
|
{
|
|
public:
|
|
enum class Feature
|
|
{
|
|
ExportPackageDependencies,
|
|
CxxImportStd,
|
|
MappedPackageInfo,
|
|
ExportBuildDatabase,
|
|
GenerateSbom,
|
|
Rust,
|
|
|
|
Sentinel,
|
|
};
|
|
|
|
enum class TryCompileCondition
|
|
{
|
|
Always,
|
|
SkipCompilerChecks,
|
|
Never,
|
|
};
|
|
|
|
struct FeatureData
|
|
{
|
|
std::string Name;
|
|
std::string Uuid;
|
|
std::string Variable;
|
|
std::string Description;
|
|
std::vector<std::string> TryCompileVariables;
|
|
TryCompileCondition ForwardThroughTryCompile;
|
|
};
|
|
|
|
static FeatureData const& DataForFeature(Feature f);
|
|
static cm::optional<Feature> FeatureByName(std::string const& name);
|
|
static bool HasSupportEnabled(cmMakefile const& mf, Feature f);
|
|
};
|