MinGW's linker supports passing the list of objects as a file for this reason and CMake will use that by default.