Quellcode durchsuchen

Fix determination of when we're evaluating compile definitions.

Also handle the config-specific property.
Stephen Kelly vor 13 Jahren
Ursprung
Commit
b030323c13
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 2 1
      Source/cmGeneratorExpressionDAGChecker.cxx

+ 2 - 1
Source/cmGeneratorExpressionDAGChecker.cxx

@@ -165,5 +165,6 @@ bool cmGeneratorExpressionDAGChecker::EvaluatingCompileDefinitions()
 {
   const char *prop = this->Property.c_str();
   return (strcmp(prop, "COMPILE_DEFINITIONS") == 0
-       || strcmp(prop, "INTERFACE_COMPILE_DEFINITIONS") == 0 );
+       || strcmp(prop, "INTERFACE_COMPILE_DEFINITIONS") == 0
+       || strncmp(prop, "COMPILE_DEFINITIONS_", 20) == 0);
 }