summaryrefslogtreecommitdiff
path: root/Source/cmQtAutoGen.cxx
diff options
context:
space:
mode:
authorDaniel Gehriger <dgehriger@globusmedical.com>2022-04-25 12:17:53 +0200
committerDaniel Gehriger <dgehriger@globusmedical.com>2022-04-26 20:43:00 +0200
commit1c9cead051be019bcaa46f15d3587ca23214805b (patch)
tree33ba7bd2a7197e8a6c278b135102518e8ce19b2f /Source/cmQtAutoGen.cxx
parentf109faf450f04fe045e2b5328092684038dd68e1 (diff)
downloadcmake-1c9cead051be019bcaa46f15d3587ca23214805b.tar.gz
AUTOMOC: Automatically use options file for moc compiler
Diffstat (limited to 'Source/cmQtAutoGen.cxx')
-rw-r--r--Source/cmQtAutoGen.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmQtAutoGen.cxx b/Source/cmQtAutoGen.cxx
index 0a394b57cd..adbdba8fe5 100644
--- a/Source/cmQtAutoGen.cxx
+++ b/Source/cmQtAutoGen.cxx
@@ -76,6 +76,13 @@ static void MergeOptions(std::vector<std::string>& baseOpts,
unsigned int const cmQtAutoGen::ParallelMax = 64;
+#ifdef _WIN32
+// Actually 32767 (see
+// https://devblogs.microsoft.com/oldnewthing/20031210-00/?p=41553) but we
+// allow for a small margin
+size_t const cmQtAutoGen::CommandLineLengthMax = 32000;
+#endif
+
cm::string_view cmQtAutoGen::GeneratorName(GenT genType)
{
switch (genType) {