[Bug 22540] CMake hangs when trying to detect and test MinGW compiler (gcc.exe & g++.exe)

wine-bugs at winehq.org wine-bugs at winehq.org
Sun May 9 14:44:57 CDT 2010


http://bugs.winehq.org/show_bug.cgi?id=22540





--- Comment #7 from Sebastian <nil094 at 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

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list