Browse Source

Fix determination of when we're evaluating compile definitions.

Also handle the config-specific property.
Stephen Kelly 12 years ago
parent
commit
b030323c13
1 changed files with 2 additions and 1 deletions
  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);
 }