diff options
author | Stephen Kelly <steveire@gmail.com> | 2014-03-12 11:45:14 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2014-03-31 21:18:43 (GMT) |
commit | 26d494ba01809553e335cca4f925d14dab2c50f7 (patch) | |
tree | 706f1662f3cba1ee836568634256930c251b5b9f /Source/cmLocalGenerator.cxx | |
parent | d38423ecc4105d8339b7461130b964f3c69e8847 (diff) | |
download | CMake-26d494ba01809553e335cca4f925d14dab2c50f7.zip CMake-26d494ba01809553e335cca4f925d14dab2c50f7.tar.gz CMake-26d494ba01809553e335cca4f925d14dab2c50f7.tar.bz2 |
cmTarget: Use string API to add sources to cmTarget objects.
Continue to call GetOrCreateSource where necessary to create
cmSourceFile objects which have the GENERATED attribute set.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index c47147c..61d2a80 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -754,8 +754,8 @@ void cmLocalGenerator::AddBuildTargetRule(const std::string& llang, comment.c_str(), this->Makefile->GetStartOutputDirectory() ); - target.Target->AddSourceFile - (this->Makefile->GetSource(targetFullPath)); + this->Makefile->GetSource(targetFullPath); + target.Target->AddSource(targetFullPath); } |