summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-06-29 17:16:45 (GMT)
committerBrad King <brad.king@kitware.com>2017-06-29 17:22:32 (GMT)
commit8cd28bb0e54f962ab2b189f1b7196c2b014129a7 (patch)
treef95c9e20c2000e1144f2fb15827f809cd79d779b /Source/cmLocalGenerator.cxx
parent0fc2d78ee97cb0ba73040be353bdedd4fc03c2b9 (diff)
downloadCMake-8cd28bb0e54f962ab2b189f1b7196c2b014129a7.zip
CMake-8cd28bb0e54f962ab2b189f1b7196c2b014129a7.tar.gz
CMake-8cd28bb0e54f962ab2b189f1b7196c2b014129a7.tar.bz2
cmLocalGenerator: Switch order of <LANG>_{EXTENSIONS,STANDARD} check
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index f2c4644..54e76b2 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -1488,11 +1488,6 @@ void cmLocalGenerator::AddCompilerRequirementFlag(
// This compiler has no notion of language standard levels.
return;
}
- std::string stdProp = lang + "_STANDARD";
- const char* standardProp = target->GetProperty(stdProp);
- if (!standardProp) {
- return;
- }
std::string extProp = lang + "_EXTENSIONS";
bool ext = true;
if (const char* extPropValue = target->GetProperty(extProp)) {
@@ -1500,6 +1495,11 @@ void cmLocalGenerator::AddCompilerRequirementFlag(
ext = false;
}
}
+ std::string stdProp = lang + "_STANDARD";
+ const char* standardProp = target->GetProperty(stdProp);
+ if (!standardProp) {
+ return;
+ }
std::string const type = ext ? "EXTENSION" : "STANDARD";