summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorJustin Goshi <jgoshi@microsoft.com>2020-06-18 22:42:15 (GMT)
committerBrad King <brad.king@kitware.com>2020-06-22 13:26:23 (GMT)
commitba835874a43599bcc5ee2f8321662eb34fb341aa (patch)
treece7ce03aaeb33b8d9ecd0e7efdb61e9b282b1d44 /Source/cmMakefile.cxx
parente43486a63919b64fd2eef5d60c9fca1cea83ca94 (diff)
downloadCMake-ba835874a43599bcc5ee2f8321662eb34fb341aa.zip
CMake-ba835874a43599bcc5ee2f8321662eb34fb341aa.tar.gz
CMake-ba835874a43599bcc5ee2f8321662eb34fb341aa.tar.bz2
Add backtrace support for language standard
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;
}