Fix determination of when we're evaluating compile definitions.
Also handle the config-specific property.
This commit is contained in:
parent
813b519280
commit
b030323c13
|
@ -165,5 +165,6 @@ bool cmGeneratorExpressionDAGChecker::EvaluatingCompileDefinitions()
|
||||||
{
|
{
|
||||||
const char *prop = this->Property.c_str();
|
const char *prop = this->Property.c_str();
|
||||||
return (strcmp(prop, "COMPILE_DEFINITIONS") == 0
|
return (strcmp(prop, "COMPILE_DEFINITIONS") == 0
|
||||||
|| strcmp(prop, "INTERFACE_COMPILE_DEFINITIONS") == 0 );
|
|| strcmp(prop, "INTERFACE_COMPILE_DEFINITIONS") == 0
|
||||||
|
|| strncmp(prop, "COMPILE_DEFINITIONS_", 20) == 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue