summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-02-05 19:54:02 (GMT)
committerBrad King <brad.king@kitware.com>2013-02-07 16:09:01 (GMT)
commitc0debb1f89de47f13f7b9682ebd24b772a649e78 (patch)
tree15e09c0a61f81ef5e4e0fdb6533ca7987c031d17 /Source/cmGlobalGenerator.cxx
parentdaae0d2f5b0f9f5e1db3615d85d39ee819d50175 (diff)
parentec85306025ae787e08d4ce097fde966f1809c74f (diff)
downloadCMake-c0debb1f89de47f13f7b9682ebd24b772a649e78.zip
CMake-c0debb1f89de47f13f7b9682ebd24b772a649e78.tar.gz
CMake-c0debb1f89de47f13f7b9682ebd24b772a649e78.tar.bz2
Merge branch 'master' into generator-toolset
We need the latest Tests/CMakeLists.txt so we can refactor all tests.
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index d8afa53..ba29589 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -994,6 +994,7 @@ void cmGlobalGenerator::Generate()
// Generate project files
for (i = 0; i < this->LocalGenerators.size(); ++i)
{
+ this->LocalGenerators[i]->GetMakefile()->SetGeneratingBuildSystem();
this->SetCurrentLocalGenerator(this->LocalGenerators[i]);
this->LocalGenerators[i]->Generate();
this->LocalGenerators[i]->GenerateInstallRules();
@@ -1077,7 +1078,8 @@ void cmGlobalGenerator::CreateAutomocTargets()
if(target.GetType() == cmTarget::EXECUTABLE ||
target.GetType() == cmTarget::STATIC_LIBRARY ||
target.GetType() == cmTarget::SHARED_LIBRARY ||
- target.GetType() == cmTarget::MODULE_LIBRARY)
+ target.GetType() == cmTarget::MODULE_LIBRARY ||
+ target.GetType() == cmTarget::OBJECT_LIBRARY)
{
if(target.GetPropertyAsBool("AUTOMOC") && !target.IsImported())
{