diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-08-29 16:10:19 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-10-07 06:37:57 (GMT) |
commit | c38e30f68c7beffdc65af0f3799ae82ce60aaf67 (patch) | |
tree | a46d4525a0685b69df5558a98020e695e5209118 /Source/cmQtAutoGeneratorInitializer.cxx | |
parent | 5d3776a7ebb718ae6ed4724e0a8961cda68b6316 (diff) | |
download | CMake-c38e30f68c7beffdc65af0f3799ae82ce60aaf67.zip CMake-c38e30f68c7beffdc65af0f3799ae82ce60aaf67.tar.gz CMake-c38e30f68c7beffdc65af0f3799ae82ce60aaf67.tar.bz2 |
cmGeneratorTarget: Add methods for generate-time source addition.
Diffstat (limited to 'Source/cmQtAutoGeneratorInitializer.cxx')
-rw-r--r-- | Source/cmQtAutoGeneratorInitializer.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmQtAutoGeneratorInitializer.cxx b/Source/cmQtAutoGeneratorInitializer.cxx index 2703f4c..378f132 100644 --- a/Source/cmQtAutoGeneratorInitializer.cxx +++ b/Source/cmQtAutoGeneratorInitializer.cxx @@ -101,7 +101,7 @@ static void SetupSourceFiles(cmGeneratorTarget const* target, fileIt != newRccFiles.end(); ++fileIt) { - const_cast<cmTarget*>(target->Target)->AddSource(*fileIt); + const_cast<cmGeneratorTarget*>(target)->AddSource(*fileIt); } } @@ -709,7 +709,7 @@ void cmQtAutoGeneratorInitializer::InitializeAutogenSources( makefile->AppendProperty("ADDITIONAL_MAKE_CLEAN_FILES", mocCppFile.c_str(), false); - target->Target->AddSource(mocCppFile); + target->AddSource(mocCppFile); } } |