Browse Source

Merge topic 'fix-MAP_IMPORTED_CONFIG-evaluation'

15d98a4 Genex: Fix evaluation of MAP_IMPORTED_CONFIG_<CONFIG>
Brad King 12 năm trước cách đây
mục cha
commit
b6f6802b3d
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      Source/cmGeneratorExpressionEvaluator.cxx

+ 3 - 2
Source/cmGeneratorExpressionEvaluator.cxx

@@ -574,14 +574,15 @@ static const struct ConfigurationTestNode : public cmGeneratorExpressionNode
         // Check if there is a proper config mapping for the tested config.
         std::vector<std::string> mappedConfigs;
         std::string mapProp = "MAP_IMPORTED_CONFIG_";
-        mapProp += context->Config;
+        mapProp += cmSystemTools::UpperCase(context->Config);
         if(const char* mapValue =
                         context->CurrentTarget->GetProperty(mapProp.c_str()))
           {
           cmSystemTools::ExpandListArgument(cmSystemTools::UpperCase(mapValue),
                                             mappedConfigs);
           return std::find(mappedConfigs.begin(), mappedConfigs.end(),
-                          context->Config) != mappedConfigs.end() ? "1" : "0";
+                           cmSystemTools::UpperCase(parameters.front()))
+              != mappedConfigs.end() ? "1" : "0";
           }
         }
       }