[CMake] CMAKE - troubles finding executables/paths - Windows 7 / MinGW

Bill Lorensen bill.lorensen at gmail.com
Wed Jun 1 10:13:03 EDT 2011


I can't reproduce the problem although I did recently upgrade to cmake 2.8.4.

It is important to have c:/MinGW/bin (or your bin location) in the system path.

On Tue, May 31, 2011 at 2:00 PM, Bill Hoffman <bill.hoffman at kitware.com> wrote:
> On 5/31/2011 12:57 PM, Bill Lorensen wrote:
>>
>> Steve,
>>
>> I'm not sure why cmake won't find mingw's make. I build with mingw
>> every day. If I run the cmake gui from a fresh build tree, I get the
>> same error. Then I use the gui to browse to the location of make.exe
>> and then all runs fine.
>>
>
> That sounds like a pain...  Must be something that changed in mingw... In
> Modules/CMakeMinGWFindMake.cmake is where the problem must be.
>
> It has this:
>
> FIND_PROGRAM(CMAKE_MAKE_PROGRAM mingw32-make.exe PATHS
>
> "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\MinGW;InstallLocation]/bin"
>  c:/MinGW/bin /MinGW/bin)
>
> I am guessing the installer registry changed.  If one of you could try some
> other paths to try in this find_program, I would be happy to merge them in
> to CMake 2.8.5.
>
> Thanks.
>
> -Bill
> _______________________________________________
> 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
>


More information about the CMake mailing list