diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-05-16 13:15:28 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-06-02 09:56:37 (GMT) |
commit | 80ca9c4b41ecdce069a6c3f4c1b558084a748876 (patch) | |
tree | e96eb29cd532378cd79c3e3ea4bb975ffbc2e285 /Source/cmGeneratorExpressionDAGChecker.cxx | |
parent | 7cb23084b2595d06aea46cead0e077b5f13aeddb (diff) | |
download | CMake-80ca9c4b41ecdce069a6c3f4c1b558084a748876.zip CMake-80ca9c4b41ecdce069a6c3f4c1b558084a748876.tar.gz CMake-80ca9c4b41ecdce069a6c3f4c1b558084a748876.tar.bz2 |
Add COMPILE_OPTIONS target property.
This method reads generator expressions from the COMPILE_OPTIONS
target property, as well as INTERFACE_COMPILE_OPTIONS from linked
dependents.
Diffstat (limited to 'Source/cmGeneratorExpressionDAGChecker.cxx')
-rw-r--r-- | Source/cmGeneratorExpressionDAGChecker.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmGeneratorExpressionDAGChecker.cxx b/Source/cmGeneratorExpressionDAGChecker.cxx index 5cb50b9..e5ffb0c 100644 --- a/Source/cmGeneratorExpressionDAGChecker.cxx +++ b/Source/cmGeneratorExpressionDAGChecker.cxx @@ -168,3 +168,11 @@ bool cmGeneratorExpressionDAGChecker::EvaluatingCompileDefinitions() const || strcmp(prop, "INTERFACE_COMPILE_DEFINITIONS") == 0 || strncmp(prop, "COMPILE_DEFINITIONS_", 20) == 0); } + +//---------------------------------------------------------------------------- +bool cmGeneratorExpressionDAGChecker::EvaluatingCompileOptions() const +{ + const char *prop = this->Property.c_str(); + return (strcmp(prop, "COMPILE_OPTIONS") == 0 + || strcmp(prop, "INTERFACE_COMPILE_OPTIONS") == 0 ); +} |