Commit 8cd28bb0 authored by Brad King's avatar Brad King

cmLocalGenerator: Switch order of <LANG>_{EXTENSIONS,STANDARD} check

parent 0fc2d78e
......@@ -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";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment