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.
-- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake