title: CMake is not found when running through make
body: <p>I'm trying to build <a href="https://github.com/AlbertWerner/cryptonotecoinwallet" rel="nofollow noreferrer">https://github.com/AlbertWerner/cryptonotecoinwallet</a> and facing an issue.</p>
  
  <p>According to the README of the repo, I can run <code>cmake</code> command and it completes without any errors. But then, when I run <code>make</code>, it gives me the below error.</p>
  
  <pre><code>$ make
  make: /usr/bin/cmake: Command not found
  make: *** [Makefile:5138: cmake_check_build_system] Error 127
  </code></pre>
  
  <p>I'm using MSYS on Windows and here are the corresponding details.</p>
  
  <pre><code>$ echo $PATH
  /usr/local/bin:/usr/bin:/bin:/opt/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/mingw32/bin
  
  $ which cmake
  /mingw32/bin/cmake
  </code></pre>
  
  <p>Seems like it's looking for <code>cmake</code> in the wrong path.</p>
  
  <p>Makefile</p>
  
  <pre><code>cmake_check_build_system:
      $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
  .PHONY : cmake_check_build_system # &lt;== Line 5139
  </code></pre>
  
  <p>I'm not sure what's wrong. Please help me out.</p>
  
  <p>Thanks.</p>