diff options
author | Daniel Gehriger <dgehriger@globusmedical.com> | 2022-04-25 10:17:53 (GMT) |
---|---|---|
committer | Daniel Gehriger <dgehriger@globusmedical.com> | 2022-04-26 18:43:00 (GMT) |
commit | 1c9cead051be019bcaa46f15d3587ca23214805b (patch) | |
tree | 33ba7bd2a7197e8a6c278b135102518e8ce19b2f /Source/cmQtAutoGen.cxx | |
parent | f109faf450f04fe045e2b5328092684038dd68e1 (diff) | |
download | CMake-1c9cead051be019bcaa46f15d3587ca23214805b.zip CMake-1c9cead051be019bcaa46f15d3587ca23214805b.tar.gz CMake-1c9cead051be019bcaa46f15d3587ca23214805b.tar.bz2 |
AUTOMOC: Automatically use options file for moc compiler
Diffstat (limited to 'Source/cmQtAutoGen.cxx')
-rw-r--r-- | Source/cmQtAutoGen.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmQtAutoGen.cxx b/Source/cmQtAutoGen.cxx index 0a394b5..adbdba8 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) { |