mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-16 04:02:03 -06:00
cmLocalGenerator: Switch order of <LANG>_{EXTENSIONS,STANDARD} check
This commit is contained in:
@@ -1488,11 +1488,6 @@ void cmLocalGenerator::AddCompilerRequirementFlag(
|
|||||||
// This compiler has no notion of language standard levels.
|
// This compiler has no notion of language standard levels.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
std::string stdProp = lang + "_STANDARD";
|
|
||||||
const char* standardProp = target->GetProperty(stdProp);
|
|
||||||
if (!standardProp) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
std::string extProp = lang + "_EXTENSIONS";
|
std::string extProp = lang + "_EXTENSIONS";
|
||||||
bool ext = true;
|
bool ext = true;
|
||||||
if (const char* extPropValue = target->GetProperty(extProp)) {
|
if (const char* extPropValue = target->GetProperty(extProp)) {
|
||||||
@@ -1500,6 +1495,11 @@ void cmLocalGenerator::AddCompilerRequirementFlag(
|
|||||||
ext = false;
|
ext = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
std::string stdProp = lang + "_STANDARD";
|
||||||
|
const char* standardProp = target->GetProperty(stdProp);
|
||||||
|
if (!standardProp) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
std::string const type = ext ? "EXTENSION" : "STANDARD";
|
std::string const type = ext ? "EXTENSION" : "STANDARD";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user