1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-24 19:59:47 +08:00

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

This commit is contained in:
Brad King
2017-06-29 13:16:45 -04:00
parent 0fc2d78ee9
commit 8cd28bb0e5

View File

@@ -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";