summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2011-08-10 17:51:07 (GMT)
committerAlex Neundorf <neundorf@kde.org>2011-08-14 13:58:08 (GMT)
commit83b730cd1aeeafc05473d163e13fb5489817c149 (patch)
tree9fbbc97050565198c21e6b58d54aba71da9ba656 /Source/cmMakefile.cxx
parent126c6ead7707ac29f3b2fa779752025c7cc0da32 (diff)
downloadCMake-83b730cd1aeeafc05473d163e13fb5489817c149.zip
CMake-83b730cd1aeeafc05473d163e13fb5489817c149.tar.gz
CMake-83b730cd1aeeafc05473d163e13fb5489817c149.tar.bz2
Add AUTOMOC to the add_library() command
Alex
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index a5cdee4..45165e5 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -1886,7 +1886,7 @@ void cmMakefile::AddGlobalLinkInformation(const char* name, cmTarget& target)
}
-void cmMakefile::AddLibrary(const char* lname, cmTarget::TargetType type,
+cmTarget* cmMakefile::AddLibrary(const char* lname, cmTarget::TargetType type,
const std::vector<std::string> &srcs,
bool excludeFromAll)
{
@@ -1909,6 +1909,7 @@ void cmMakefile::AddLibrary(const char* lname, cmTarget::TargetType type,
}
target->AddSources(srcs);
this->AddGlobalLinkInformation(lname, *target);
+ return target;
}
cmTarget* cmMakefile::AddExecutable(const char *exeName,