ENH: fix bug where sharedforward would not work if there was a space in the path...
[cmake.git] / Modules / CMakeMinGWFindMake.cmake
blob2ad0298322e40e2ca51a63c6661740886f1b485e
1 FIND_PROGRAM(CMAKE_MAKE_PROGRAM mingw32-make.exe PATHS
2   "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\MinGW;InstallLocation]/bin" 
3   c:/MinGW/bin /MinGW/bin)
4 FIND_PROGRAM(CMAKE_SH sh.exe )
5 IF(CMAKE_SH)
6   MESSAGE(FATAL_ERROR "sh.exe was found in your PATH, here:\n${CMAKE_SH}\nFor MinGW make to work correctly sh.exe must NOT be in your path.\nRun cmake from a shell that does not have sh.exe in your PATH.\nIf you want to use a UNIX shell, then use MSYS Makefiles.\n")
7   SET(CMAKE_MAKE_PROGRAM NOTFOUND)
8 ENDIF(CMAKE_SH)
10 MARK_AS_ADVANCED(CMAKE_MAKE_PROGRAM CMAKE_SH)