<div dir="ltr"><div>Hi Kanstantin,<br><br></div><div>Thanks for the feedback.  The location of git that I have always used is "C:\Program Files [(x86)]\bin\git.exe".  Looking at the git installation, there is another executable "C:\Program Files (x86)\Git\cmd\git.exe", but I have never pointed CMake at that one.  What is the difference between the two?  I can change the patch to use the other one, but I'd like to understand why it is necessary.<br><br></div><div>Thanks,<br></div><div>Shawn<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 14, 2016 at 10:42 PM, Konstantin Podsvirov <span dir="ltr"><<a href="mailto:konstantin@podsvirov.pro" target="_blank">konstantin@podsvirov.pro</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, Shawn!<br>
<br>
I am using CMake and Git on the Windows. As an IDE I use Qt Creator.<br>
<br>
My experience is that on Windows you need to use:<br>
<br>
"C:\Program Files [(x86)]\Git\cmd\git.exe"<br>
<br>
If you use your proposed way, I'm having problems<br>
work with Git in my project.<br>
<br>
It seems to me that this decision is necessary to discuss here.<br>
<br>
Dear list, does anyone have experience and recommendations?<br>
<br>
15.01.2016, 02:49, "Shawn Waldon" <<a href="mailto:shawn.waldon@kitware.com">shawn.waldon@kitware.com</a>>:<br>
> Hi,<br>
><br>
> Recently I had to build a project on windows whose required build git. And even though I had installed git from here [1] in the default location, I had to tell CMake where to find it every time I did a build in a clean build tree. So here is a patch that tells CMake to look in the default install location for Git for Windows [2] when asked for git. I have tested it on my windows machine and it works there.<br>
<span class="">><br>
> Shawn<br>
><br>
> [1]: <a href="https://git-for-windows.github.io/" rel="noreferrer" target="_blank">https://git-for-windows.github.io/</a><br>
> [2]: C:\Program Files\Git\bin\git.exe ('Program Files (x86)' for older versions or 32 bit systems)<br>
</span>> ,--<br>
><br>
> Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
><br>
> Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
><br>
> Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
><br>
> CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
> CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
> CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
><br>
> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/cmake-developers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/cmake-developers</a><br>
<br>
<br>
Regards,<br>
Konstantin Podsvirov<br>
</blockquote></div><br></div>