|
@@ -32,6 +32,7 @@
|
|
|
#include "cmCustomCommandGenerator.h"
|
|
#include "cmCustomCommandGenerator.h"
|
|
|
#include "cmCxxModuleUsageEffects.h"
|
|
#include "cmCxxModuleUsageEffects.h"
|
|
|
#include "cmEvaluatedTargetProperty.h"
|
|
#include "cmEvaluatedTargetProperty.h"
|
|
|
|
|
+#include "cmExperimental.h"
|
|
|
#include "cmFileSet.h"
|
|
#include "cmFileSet.h"
|
|
|
#include "cmFileTimes.h"
|
|
#include "cmFileTimes.h"
|
|
|
#include "cmGeneratedFileStream.h"
|
|
#include "cmGeneratedFileStream.h"
|
|
@@ -8502,6 +8503,14 @@ bool cmGeneratorTarget::ApplyCXXStdTargets()
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // Check the experimental feature here as well. A toolchain may have
|
|
|
|
|
+ // provided the target and skipped the check in the toolchain preparation
|
|
|
|
|
+ // logic.
|
|
|
|
|
+ if (!cmExperimental::HasSupportEnabled(
|
|
|
|
|
+ *this->Makefile, cmExperimental::Feature::CxxImportStd)) {
|
|
|
|
|
+ break;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
this->Target->AppendProperty(
|
|
this->Target->AppendProperty(
|
|
|
"LINK_LIBRARIES",
|
|
"LINK_LIBRARIES",
|
|
|
cmStrCat("$<BUILD_LOCAL_INTERFACE:$<$<CONFIG:", config, ">:", targetName,
|
|
cmStrCat("$<BUILD_LOCAL_INTERFACE:$<$<CONFIG:", config, ">:", targetName,
|