http://bugs.winehq.org/show_bug.cgi?id=22540
--- Comment #7 from Sebastian nil094@yahoo.com 2010-05-09 14:44:56 --- There is a "workaround" to get CMake to generate Makefiles for MinGW; Instead of using "Unix Makefiles" one has to use "MinGW Makefiles": wine cmake -G "MinGW Makefiles" $path_to_project # ...
This command will create the Makefile correctly, and the project will build correctly.
However, the generator "MinGW Makefiles" doesn't seem to be documented, and "Unix Makefiles" generates valid Makefiles for MinGW on Windows XP (and most likely on Vista and Win7 too).
A sample project has been attached, which can be used to test the following: # will fail with the described behaviour wine cmake -G "Unix Makefiles" .
# will create a Makefile wine cmake -G "MinGW Makefiles" . # build the project (It's just a helloworld application) wine make