summaryrefslogtreecommitdiffstats
path: root/Source/cmQtAutoGenGlobalInitializer.cxx
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2019-01-14 16:33:03 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2019-01-15 08:52:35 (GMT)
commitf2f166133402ad5f7998e0fef93b04f56c2f6d07 (patch)
tree9df2037b372763877f19f7b54792dbc7c927396c /Source/cmQtAutoGenGlobalInitializer.cxx
parentb2343ff08682e23f61be27c4faf02f8e2c37abcf (diff)
downloadCMake-f2f166133402ad5f7998e0fef93b04f56c2f6d07.zip
CMake-f2f166133402ad5f7998e0fef93b04f56c2f6d07.tar.gz
CMake-f2f166133402ad5f7998e0fef93b04f56c2f6d07.tar.bz2
Autogen: Add and use QtAutoGen::Tools method
Diffstat (limited to 'Source/cmQtAutoGenGlobalInitializer.cxx')
-rw-r--r--Source/cmQtAutoGenGlobalInitializer.cxx14
1 files changed, 1 insertions, 13 deletions
diff --git a/Source/cmQtAutoGenGlobalInitializer.cxx b/Source/cmQtAutoGenGlobalInitializer.cxx
index d1cbd0d..a5a8423 100644
--- a/Source/cmQtAutoGenGlobalInitializer.cxx
+++ b/Source/cmQtAutoGenGlobalInitializer.cxx
@@ -102,19 +102,7 @@ cmQtAutoGenGlobalInitializer::cmQtAutoGenGlobalInitializer(
std::string msg = "AUTOGEN: No valid Qt version found for target ";
msg += target->GetName();
msg += ". ";
- {
- std::vector<std::string> lst;
- if (mocDisabled) {
- lst.emplace_back("AUTOMOC");
- }
- if (uicDisabled) {
- lst.emplace_back("AUTOUIC");
- }
- if (rccDisabled) {
- lst.emplace_back("AUTORCC");
- }
- msg += cmJoin(lst, ", ");
- }
+ msg += cmQtAutoGen::Tools(mocDisabled, uicDisabled, rccDisabled);
msg += " disabled. Consider adding:\n";
if (uicDisabled) {
msg += " find_package(Qt5 COMPONENTS Widgets)\n";