Compile 32bit library for MinGW64 compiler

hepple wrote on Friday, January 16, 2015:

I am having trouble building the GLFW library.

I can use the precompiled 32 bit windows binaries with 32 bit MinGW32 bit generated code.
I can use the precompiled 64 bit windows binaries with 64 bit MinGW64 bit generated code.
I have also downloaded the source code and can get the above working by building the source code.

What I can’t do is build a 32bit GLFW library using the MinGW64 bit compiler. Whenever I try to link to the 32 bit libraries I get a compatibility error. I am using GCC version 4.8.2 with MinGW32 and GCC version 4.9.2 with MinGW64.

I can’t see a way to tell cMake which version (32 or 64 bit) libraries to compile. Is there a way to do this?