diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-01-30 22:35:22 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-01-31 16:30:49 (GMT) |
commit | 0fa7f69c0e2cdcd8b7ece400651ee7821b2ede4b (patch) | |
tree | 65cca8bfadf82aa00debb6b15b12c3d8c3773956 /Source/cmGeneratorExpressionDAGChecker.cxx | |
parent | 2c3654c3de718fe822f8960063373774fc019494 (diff) | |
download | CMake-0fa7f69c0e2cdcd8b7ece400651ee7821b2ede4b.zip CMake-0fa7f69c0e2cdcd8b7ece400651ee7821b2ede4b.tar.gz CMake-0fa7f69c0e2cdcd8b7ece400651ee7821b2ede4b.tar.bz2 |
Add API to check if we're reading a includes or defines property.
This will allow the implementation of the LINKED generator expression.
Diffstat (limited to 'Source/cmGeneratorExpressionDAGChecker.cxx')
-rw-r--r-- | Source/cmGeneratorExpressionDAGChecker.cxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/cmGeneratorExpressionDAGChecker.cxx b/Source/cmGeneratorExpressionDAGChecker.cxx index 269211b..bcb0820 100644 --- a/Source/cmGeneratorExpressionDAGChecker.cxx +++ b/Source/cmGeneratorExpressionDAGChecker.cxx @@ -125,3 +125,19 @@ bool cmGeneratorExpressionDAGChecker::EvaluatingLinkLibraries() || strncmp(prop, "LINK_INTERFACE_LIBRARIES_", 26) == 0 || strncmp(prop, "IMPORTED_LINK_INTERFACE_LIBRARIES_", 35) == 0); } + +//---------------------------------------------------------------------------- +bool cmGeneratorExpressionDAGChecker::EvaluatingIncludeDirectories() +{ + const char *prop = this->Property.c_str(); + return (strcmp(prop, "INCLUDE_DIRECTORIES") == 0 + || strcmp(prop, "INTERFACE_INCLUDE_DIRECTORIES") == 0 ); +} + +//---------------------------------------------------------------------------- +bool cmGeneratorExpressionDAGChecker::EvaluatingCompileDefinitions() +{ + const char *prop = this->Property.c_str(); + return (strcmp(prop, "COMPILE_DEFINITIONS") == 0 + || strcmp(prop, "INTERFACE_COMPILE_DEFINITIONS") == 0 ); +} |