[CMake] mingw32 linker line exceeds win32 limitations

Brad King brad.king at kitware.com
Thu Dec 20 12:12:05 EST 2007


Felix Obenhuber wrote:
> Dear CMake developer and users,
> 
> I've encountered some probs with a an issue whitch already raised last
> year in the a post [1].
> 
> Mingw32-make (5.1.3) minds about a too long linker line. The project
> makes use of CMake for Makefile Generation, that's why I tend to ask
> here whether someone found a solution for the known problem. Searching
> the web didn't return any usefull results (beside the crappy behaviour
> of the win32 command.exe with line of more than 8xxx+ chars)
> 
> The CMake version used, is the latest 2.4.7 precompiled win32 release.
> 
> I'd like to prevent workarrounds like changing file or directory names
> or consolidating source file content...

CMake uses a "link script" approach to avoid placing the entire link
line in the makefile.  It is enabled on certain generators (including
MinGW) and used for linking libraries but has not been yet needed for
executables.  Is the target for which you're having problems a library
or an executable target?

-Brad


More information about the CMake mailing list