https://github.com/Kitware/CMake
Revision dab2ff3e237f1c3c2430e0661281719185ef4eb1 authored by Brad King on 24 February 2017, 18:22:45 UTC, committed by Brad King on 24 February 2017, 18:22:45 UTC
2 parent s ad3bf56 + a9fa6a2
Raw File
Tip revision: dab2ff3e237f1c3c2430e0661281719185ef4eb1 authored by Brad King on 24 February 2017, 18:22:45 UTC
Merge branch 'ExternalProject-checkout-clarify' into release
Tip revision: dab2ff3
CMakeMinGWFindMake.cmake
# Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
# file Copyright.txt or https://cmake.org/licensing for details.


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
  "[HKEY_CURRENT_USER\\Software\\CodeBlocks;Path]/MinGW/bin"
  )
find_program(CMAKE_SH sh.exe )
if(CMAKE_SH)
  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")
  set(CMAKE_MAKE_PROGRAM NOTFOUND)
endif()

mark_as_advanced(CMAKE_MAKE_PROGRAM CMAKE_SH)
back to top