From cf3faacad2aff9ac3c9f2d407b1823a75939160e Mon Sep 17 00:00:00 2001 From: "Yury G. Kudryashov" Date: Fri, 11 Jan 2013 12:42:34 +0400 Subject: Automoc: Fix automoc for OBJECT libraries. Before this patch, add_library(obj OBJECT helper.cpp) add_executable(tgt $) didn't run automoc on helper.cpp. --- Source/cmGlobalGenerator.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index d030aa7..b431705 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -1075,7 +1075,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()) { -- cgit v0.12