[CMake] FindGit.cmake on Windows

Dixon, Shane Shane.Dixon at atmel.com
Thu Sep 30 17:13:16 EDT 2010


 
Oops.  I just realized I already requested this (with the same title no less).  This didn't make it into the latest RC for Cmake.  Does anyone know if it's planned for next?

--
Shane Dixon
Linux Engineer
Atmel Corporation 


-----Original Message-----
From: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] On Behalf Of Dixon, Shane
Sent: Thursday, September 30, 2010 2:53 PM
To: cmake at cmake.org
Subject: [CMake] FindGit.cmake on Windows

Is it possible to update the FindGit.cmake module to be more friendly?  I changed the line:

find_program(GIT_EXECUTABLE
  NAMES ${git_names}
  DOC "git command line client"
  )

To:

find_program(GIT_EXECUTABLE
  NAMES ${git_names}
  PATHS "$ENV{ProgramFiles}/Git/bin"
  DOC "git command line client"
  )

And it found Git fine on my system.  I'm not sure if that's the only path that ought to be added, but I know that worked for me.

--
Shane Dixon
Linux Engineer
Atmel Corporation 

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


More information about the CMake mailing list