From: Junio C Hamano Date: Thu, 18 Jun 2020 04:43:40 GMT Subject: Re: [PATCH v4 6/8] cmake: support for building git on windows with mingw Message-ID: In-Reply-To: Sibi Siddharthan writes: > On Mon, Jun 15, 2020 at 7:33 PM Øystein Walle wrote: >> >> > +if(WIN32) >> > + set(EXE_EXTENSION .exe) >> > +else() >> > + set(EXE_EXTENSION) >> > +endif() >> >> You can probably use CMAKE_EXECUTABLE_SUFFIX here. See: >> https://cmake.org/cmake/help/latest/variable/CMAKE_EXECUTABLE_SUFFIX.html >> > > Could have done it that way, will try to change it once the patch > series gets merged with next or master. If it is something that makes the result even simpler than the above quoted 5 lines, I do not see a reason to postpone it and use that simpler way from the beginning. Thanks.