[CMake] MinGW Makefile fails make test

Donald Robinson drobinson at essa.com
Tue Feb 26 20:57:51 EST 2013


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. 

 

 

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130226/c94dfe54/attachment.htm>


More information about the CMake mailing list