Merge topic 'fix-CMP0047-IS_GNU-vars'
70796ef0
CMP0047: Fix CMAKE_COMPILER_IS_GNU(CC|CXX) in OLD behavior
This commit is contained in:
commit
348999a125
|
@ -844,6 +844,14 @@ void cmGlobalGenerator::CheckCompilerIdCompatibility(cmMakefile* mf,
|
|||
case cmPolicies::OLD:
|
||||
// OLD behavior is to convert QCC to GNU.
|
||||
mf->AddDefinition(compilerIdVar, "GNU");
|
||||
if(lang == "C")
|
||||
{
|
||||
mf->AddDefinition("CMAKE_COMPILER_IS_GNUCC", "1");
|
||||
}
|
||||
else if(lang == "CXX")
|
||||
{
|
||||
mf->AddDefinition("CMAKE_COMPILER_IS_GNUCXX", "1");
|
||||
}
|
||||
break;
|
||||
case cmPolicies::REQUIRED_IF_USED:
|
||||
case cmPolicies::REQUIRED_ALWAYS:
|
||||
|
|
Loading…
Reference in New Issue