summaryrefslogtreecommitdiffstats
path: root/Source/cmQtAutomoc.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-07-01 13:22:22 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-07-01 13:22:22 (GMT)
commit5f36fa98ffd0258cbcd987c11127db1ffdf5404c (patch)
tree1df55754f1aa688d5efa44048d564369270dfb20 /Source/cmQtAutomoc.cxx
parent51406e25320cb31b270e0ce3d1e709dd91e46282 (diff)
parentba0e06f250665ee985bb6e94dbee3ca8009b60a7 (diff)
downloadCMake-5f36fa98ffd0258cbcd987c11127db1ffdf5404c.zip
CMake-5f36fa98ffd0258cbcd987c11127db1ffdf5404c.tar.gz
CMake-5f36fa98ffd0258cbcd987c11127db1ffdf5404c.tar.bz2
Merge topic 'AddAutomocTargetFolder'
ba0e06f automoc: add a global AUTOMOC_TARGETS_FOLDER property
Diffstat (limited to 'Source/cmQtAutomoc.cxx')
-rw-r--r--Source/cmQtAutomoc.cxx14
1 files changed, 12 insertions, 2 deletions
diff --git a/Source/cmQtAutomoc.cxx b/Source/cmQtAutomoc.cxx
index 05c43c4..34b3c7e 100644
--- a/Source/cmQtAutomoc.cxx
+++ b/Source/cmQtAutomoc.cxx
@@ -255,8 +255,18 @@ void cmQtAutomoc::SetupAutomocTarget(cmTarget* target)
automocTargetName.c_str(), true,
workingDirectory.c_str(), depends,
commandLines, false, automocComment.c_str());
- // inherit FOLDER property from target (#13688)
- copyTargetProperty(automocTarget, target, "FOLDER");
+ // Set target folder
+ const char* automocFolder = makefile->GetCMakeInstance()->GetProperty(
+ "AUTOMOC_TARGETS_FOLDER");
+ if (automocFolder && *automocFolder)
+ {
+ automocTarget->SetProperty("FOLDER", automocFolder);
+ }
+ else
+ {
+ // inherit FOLDER property from target (#13688)
+ copyTargetProperty(automocTarget, target, "FOLDER");
+ }
target->AddUtility(automocTargetName.c_str());
}