Fix MFC setting on utility targets (#15867)
Multi-byte MFC is deprecated, and some projects will not compile if MFC is enabled.
This commit is contained in:
parent
c13ed96401
commit
a15e375cdd
|
@ -762,6 +762,8 @@ void cmVisualStudio10TargetGenerator
|
|||
std::string mfcFlagValue = mfcFlag ? mfcFlag : "0";
|
||||
|
||||
std::string useOfMfcValue = "false";
|
||||
if(this->GeneratorTarget->GetType() <= cmState::OBJECT_LIBRARY)
|
||||
{
|
||||
if(mfcFlagValue == "1")
|
||||
{
|
||||
useOfMfcValue = "Static";
|
||||
|
@ -770,6 +772,7 @@ void cmVisualStudio10TargetGenerator
|
|||
{
|
||||
useOfMfcValue = "Dynamic";
|
||||
}
|
||||
}
|
||||
std::string mfcLine = "<UseOfMfc>";
|
||||
mfcLine += useOfMfcValue + "</UseOfMfc>\n";
|
||||
this->WriteString(mfcLine.c_str(), 2);
|
||||
|
|
Loading…
Reference in New Issue