Fix determination of when we're evaluating compile definitions.

Also handle the config-specific property.
This commit is contained in:
Stephen Kelly 2013-02-12 10:38:45 +01:00
parent 813b519280
commit b030323c13
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}