VS: Teach CMAKE_MFC_FLAG to support generator expressions

This commit is contained in:
Andrey Starodubtsev
2020-09-27 22:41:25 +03:00
committed by Brad King
parent 558ce94016
commit c1f1eaf7a4
5 changed files with 13 additions and 2 deletions
+2 -1
View File
@@ -1224,7 +1224,8 @@ void cmVisualStudio10TargetGenerator::WriteMSToolConfigurationValues(
cmGlobalVisualStudio10Generator* gg = this->GlobalGenerator;
cmProp mfcFlag = this->Makefile->GetDefinition("CMAKE_MFC_FLAG");
if (mfcFlag) {
std::string const mfcFlagValue = *mfcFlag;
std::string const mfcFlagValue =
cmGeneratorExpression::Evaluate(*mfcFlag, this->LocalGenerator, config);
std::string useOfMfcValue = "false";
if (this->GeneratorTarget->GetType() <= cmStateEnums::OBJECT_LIBRARY) {