summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorAndrey Starodubtsev <andrey.starodubtsev@gmail.com>2020-09-27 19:41:25 (GMT)
committerBrad King <brad.king@kitware.com>2020-09-30 16:24:13 (GMT)
commitc1f1eaf7a4e4f1dfaba9a1fb1738aad48296bcda (patch)
tree58dd23e2f5ad16dd68821f700ceff644b353adbd /Source/cmVisualStudio10TargetGenerator.cxx
parent558ce94016f898aee596acc570e97a149f1b3dbf (diff)
downloadCMake-c1f1eaf7a4e4f1dfaba9a1fb1738aad48296bcda.zip
CMake-c1f1eaf7a4e4f1dfaba9a1fb1738aad48296bcda.tar.gz
CMake-c1f1eaf7a4e4f1dfaba9a1fb1738aad48296bcda.tar.bz2
VS: Teach CMAKE_MFC_FLAG to support generator expressions
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index ae4a5be..326ab15 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -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) {