diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-10-11 12:26:53 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-10-24 09:50:47 (GMT) |
commit | 98632effebc7ed59105a67c549989265a3b207f1 (patch) | |
tree | 51d4393da7bb727a959cd868ed4661725134a7bd /Source | |
parent | 63378baa1ceacbfdd52753e6dc7228ccfc53f4e5 (diff) | |
download | CMake-98632effebc7ed59105a67c549989265a3b207f1.zip CMake-98632effebc7ed59105a67c549989265a3b207f1.tar.gz CMake-98632effebc7ed59105a67c549989265a3b207f1.tar.bz2 |
Add the AUTOGEN_TARGETS_FOLDER and obsolete AUTOMOC_TARGETS_FOLDER.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmQtAutoGenerators.cxx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Source/cmQtAutoGenerators.cxx b/Source/cmQtAutoGenerators.cxx index b41ef75..3d915dd 100644 --- a/Source/cmQtAutoGenerators.cxx +++ b/Source/cmQtAutoGenerators.cxx @@ -269,11 +269,16 @@ void cmQtAutoGenerators::SetupAutoGenerateTarget(cmTarget* target) workingDirectory.c_str(), depends, commandLines, false, autogenComment.c_str()); // Set target folder - const char* automocFolder = makefile->GetCMakeInstance()->GetProperty( + const char* autogenFolder = makefile->GetCMakeInstance()->GetProperty( "AUTOMOC_TARGETS_FOLDER"); - if (automocFolder && *automocFolder) + if (!autogenFolder) { - autogenTarget->SetProperty("FOLDER", automocFolder); + autogenFolder = makefile->GetCMakeInstance()->GetProperty( + "AUTOGEN_TARGETS_FOLDER"); + } + if (autogenFolder && *autogenFolder) + { + autogenTarget->SetProperty("FOLDER", autogenFolder); } else { |