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 )
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)
10 MARK_AS_ADVANCED(CMAKE_MAKE_PROGRAM CMAKE_SH)