diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-06-10 16:01:59 +0200 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-06-10 16:13:21 +0200 |
commit | 0d8db250ceedf908a32c96c0a7e532f3fe9e61d9 (patch) | |
tree | 6fca18a5bcd3a77c1fd08e94e07e47bf4e0aa693 /Source/cmExportTryCompileFileGenerator.cxx | |
parent | 8a3b5bede8c8fc16b7b7b25d7e665e8936de04ee (diff) | |
download | cmake-0d8db250ceedf908a32c96c0a7e532f3fe9e61d9.tar.gz |
Use a preprocessor loop to manage the valid transitive properties.
Hopefully this will prevent regressions when adding further transitive
properties in the future.
Diffstat (limited to 'Source/cmExportTryCompileFileGenerator.cxx')
-rw-r--r-- | Source/cmExportTryCompileFileGenerator.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmExportTryCompileFileGenerator.cxx b/Source/cmExportTryCompileFileGenerator.cxx index 29406dc097..e7b185a57f 100644 --- a/Source/cmExportTryCompileFileGenerator.cxx +++ b/Source/cmExportTryCompileFileGenerator.cxx @@ -31,9 +31,10 @@ bool cmExportTryCompileFileGenerator::GenerateMainFile(std::ostream& os) ImportPropertyMap properties; - this->FindTargets("INTERFACE_INCLUDE_DIRECTORIES", te, emittedDeps); - this->FindTargets("INTERFACE_COMPILE_DEFINITIONS", te, emittedDeps); - this->FindTargets("INTERFACE_COMPILE_OPTIONS", te, emittedDeps); +#define FIND_TARGETS(PROPERTY) \ + this->FindTargets(#PROPERTY, te, emittedDeps); + + CM_FOR_EACH_TRANSITIVE_PROPERTY_NAME(FIND_TARGETS) this->PopulateProperties(te, properties, emittedDeps); |