Skip to content

Fix command line is too long failure in Windows

Andrew Maclean requested to merge Fix-command-line-too-long into master

Cmake-3.22.0, with Visual Studio 2022 and Ninja-1.10.2 causes a 'command line is too long' error when building in Windows. This is a result of this change in Cmake:

  • The “Ninja” and “NMake Makefiles” generators now use the MSVC “-external:I” flag for system includes. This became available as of VS 16.10 (toolchain version 14.29.30037).
Edited by Andrew Maclean

Merge request reports