[CMake] MinGW Makefile fails make test

Bill Hoffman bill.hoffman at kitware.com
Wed Feb 27 11:23:20 EST 2013


On 2/26/2013 8:57 PM, Donald Robinson wrote:
> This is a repost (and rewording) of an earlier post “Setting
> CMAKE_BUILD_TOOL or CMAKE_MAKE_PROGRAM with MinGW tools,” which garnered
> no response. Hopefully this post is clearer:
>
> I have Cmake 2.8.8 installed along with MinGW 4.7.2 on Windows XP with
> no other development tools. I would like this project to build using
> only MinGW tools, if possible. The project includes C and Fortran code,
> and those are both recognized (GNU 4.7.2 and GNU, respectively) and
> correctly generate simple test programs.However, Cmake fails at the next
> step with this message:
>
>     Cmake Error: Generator: execution of make failed. Make command was:
> nmake /NOLOGO “cmTryCompileExec970418286\fast”
>
> I cannot understand why it would be calling ‘nmake’ and not
> ‘mingw32-make.exe’. I added this to my CMakeLists.txt file:
>
>     SET(CMAKE_BUILD_TOOL C:/MinGW/bin/mingw32-make.exe)
>
> But this has not helped.
>
Can you do this:

mkdir clean-build
cd clean-build
cmake --trace -G "MinGW Makefiles" ../path/to/your/source  > log.txt

email me a zip file of the clean-build tree assuming it gets the same 
error.  Don't email to the list, email directly to me.

Thanks.

-Bill





More information about the CMake mailing list