summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 1f1c06a..3161e38 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -5070,7 +5070,7 @@ bool cmMakefile::AddRequiredTargetCxxFeature(cmTarget* target,
target->GetProperty(cmStrCat(lang, "_STANDARD")), newRequiredStandard,
error)) {
if (!newRequiredStandard.empty()) {
- target->SetProperty(cmStrCat(lang, "_STANDARD"), newRequiredStandard);
+ target->SetLanguageStandardProperty(lang, newRequiredStandard, feature);
}
return true;
}
@@ -5251,7 +5251,7 @@ bool cmMakefile::AddRequiredTargetCudaFeature(cmTarget* target,
target->GetProperty(cmStrCat(lang, "_STANDARD")), newRequiredStandard,
error)) {
if (!newRequiredStandard.empty()) {
- target->SetProperty(cmStrCat(lang, "_STANDARD"), newRequiredStandard);
+ target->SetLanguageStandardProperty(lang, newRequiredStandard, feature);
}
return true;
}
@@ -5356,7 +5356,7 @@ bool cmMakefile::AddRequiredTargetCFeature(cmTarget* target,
target->GetProperty(cmStrCat(lang, "_STANDARD")), newRequiredStandard,
error)) {
if (!newRequiredStandard.empty()) {
- target->SetProperty(cmStrCat(lang, "_STANDARD"), newRequiredStandard);
+ target->SetLanguageStandardProperty(lang, newRequiredStandard, feature);
}
return true;
}