summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorExpressionDAGChecker.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-02-12 09:38:45 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-02-12 09:39:34 (GMT)
commitb030323c133155c57437527d04ca2ba619663f6d (patch)
tree1de481671d8628cf7697fd28452266ee12185d08 /Source/cmGeneratorExpressionDAGChecker.cxx
parent813b519280af91336c54310b4c975110303b86b5 (diff)
downloadCMake-b030323c133155c57437527d04ca2ba619663f6d.zip
CMake-b030323c133155c57437527d04ca2ba619663f6d.tar.gz
CMake-b030323c133155c57437527d04ca2ba619663f6d.tar.bz2
Fix determination of when we're evaluating compile definitions.
Also handle the config-specific property.
Diffstat (limited to 'Source/cmGeneratorExpressionDAGChecker.cxx')
-rw-r--r--Source/cmGeneratorExpressionDAGChecker.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmGeneratorExpressionDAGChecker.cxx b/Source/cmGeneratorExpressionDAGChecker.cxx
index 0ac1a48..57e7358 100644
--- a/Source/cmGeneratorExpressionDAGChecker.cxx
+++ b/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);
}