title: How to compile libgit2 on windows using cmake?
body: <p>I am trying to compile libgit2 and followed the instruction on <code>https://libgit2.github.com/docs/guides/build-and-link/</code> but lock so far.</p>
  
  <p>Can someone tell me what to do?</p>
  
  <p>Here is the result from my command line:</p>
  
  <pre><code>-- Building for: Visual Studio 12 2013
  -- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
  -- Could NOT find ZLIB (missing:  ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
  -- zlib was not found; using bundled 3rd-party sources.
  -- LIBSSH2 not found. Set CMAKE_PREFIX_PATH if it is installed outside of the default search path.
  CMake Error at d:/cmake/share/cmake-3.3/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
    Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE)
  Call Stack (most recent call first):
    d:/cmake/share/cmake-3.3/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
    d:/cmake/share/cmake-3.3/Modules/FindPythonInterp.cmake:162 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
    CMakeLists.txt:594 (FIND_PACKAGE)
  
  
  -- Configuring incomplete, errors occurred!
  See also "D:/temp/gitlib/libgit2-master/build/CMakeFiles/CMakeOutput.log".
  See also "D:/temp/gitlib/libgit2-master/build/CMakeFiles/CMakeError.log".
  </code></pre>
  
  <p>Thanks,</p>