diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-11-18 07:09:56 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-11-25 21:41:21 (GMT) |
commit | 1320e0768e57754b51294a00480927d50176bf02 (patch) | |
tree | ec1847962c1a9562a67056bc63cbab8ee6cb1c00 /Source/cmQtAutoGenerators.cxx | |
parent | da6b86f4f031b189768dc474721145a1b99f71ea (diff) | |
download | CMake-1320e0768e57754b51294a00480927d50176bf02.zip CMake-1320e0768e57754b51294a00480927d50176bf02.tar.gz CMake-1320e0768e57754b51294a00480927d50176bf02.tar.bz2 |
cmQtAutogen: Allow specifying depends for autogen targets.
Test this by generating files with a custom target, which moc
requires to be present when it is run.
Diffstat (limited to 'Source/cmQtAutoGenerators.cxx')
-rw-r--r-- | Source/cmQtAutoGenerators.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmQtAutoGenerators.cxx b/Source/cmQtAutoGenerators.cxx index 35717ce..a7d20ae 100644 --- a/Source/cmQtAutoGenerators.cxx +++ b/Source/cmQtAutoGenerators.cxx @@ -204,6 +204,11 @@ bool cmQtAutoGenerators::InitializeAutogenTarget(cmTarget* target) "", makefile->GetCurrentOutputDirectory()); std::vector<std::string> depends; + if (const char *autogenDepends = + target->GetProperty("AUTOGEN_TARGET_DEPENDS")) + { + cmSystemTools::ExpandListArgument(autogenDepends, depends); + } std::vector<std::string> toolNames; if (target->GetPropertyAsBool("AUTOMOC")) { |