[CMake] The input line is too long (MinGW)

Martin Dobias wonder.sk at gmail.com
Thu Sep 21 07:21:56 EDT 2006


Hi,

I try to build executable in my project (using about 150 source files)
with CMake and MinGW. When it comes to linking I get an error message
from system saying:

The input line is too long.

It seems that Windows has too short maximal allowed command line - on
Linux it's OK. Is it possible to tell somehow CMake to automatically
split the command line (e.g. create 2 or more archives and link them)
? Or other workarounds?

When using NMake Makefiles with MSVC it works well as it apparently
uses inline files feature.

Thanks,
Martin


More information about the CMake mailing list