# ExternalProject: Use of cygwin's make tool in non-cygwin builds

**URL:** https://discourse.cmake.org/t/externalproject-use-of-cygwins-make-tool-in-non-cygwin-builds/2652
**Category:** Development
**Created:** [January 29, 2021, 1:31am UTC](https://discourse.cmake.org/t/externalproject-use-of-cygwins-make-tool-in-non-cygwin-builds/2652 "2021-01-29T01:31:41Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![craig.scott](https://discourse.cmake.org/user_avatar/discourse.cmake.org/craig.scott/32/20_2.png) [@craig.scott](https://discourse.cmake.org/u/craig.scott)
#### Post date: [January 29, 2021, 1:31am UTC](https://discourse.cmake.org/t/externalproject-use-of-cygwins-make-tool-in-non-cygwin-builds/2652/1 "2021-01-29T01:31:42Z")

</div>

@brad.king I’m trying to understand the rationale behind [this quite old commit](https://gitlab.kitware.com/cmake/cmake/-/commit/ed43ea603f9ea8c4eed53315e4987483c5801c63) which handles the use of `$(MAKE)` in an `ExternalProject` step command. It seems to be invoking `cygpath` for a non-cygwin build and is forcing the use of cygwin’s make tool if it can be found. This seems odd given that we are not using cygwin for the build. Why favour cygwin over, say, msys make? What scenario are we trying to account for with that commit?

---

<div class="post-metadata">

### Author: ![brad.king](https://discourse.cmake.org/user_avatar/discourse.cmake.org/brad.king/32/11_2.png) [@brad.king](https://discourse.cmake.org/u/brad.king)
#### Post date: [January 29, 2021, 12:33pm UTC](https://discourse.cmake.org/t/externalproject-use-of-cygwins-make-tool-in-non-cygwin-builds/2652/2 "2021-01-29T12:33:47Z")

</div>

Back before `ninja` we had for a while attempted to parallize makefile builds on Windows by using a GNU `make` built on Cygwin but with a patch to handle Windows-style paths. We had a nightly build doing that for a while, and this patch was needed to make `ExternalProject` work on it. I expect it is okay to remove that code now.

---

<div class="post-metadata">

### Author: ![craig.scott](https://discourse.cmake.org/user_avatar/discourse.cmake.org/craig.scott/32/20_2.png) [@craig.scott](https://discourse.cmake.org/u/craig.scott)
#### Post date: [January 29, 2021, 12:55pm UTC](https://discourse.cmake.org/t/externalproject-use-of-cygwins-make-tool-in-non-cygwin-builds/2652/3 "2021-01-29T12:55:12Z")

</div>

That’s fantastic, it was going to complicate things for my refactored ExternalProject work. Now I can clean that up and should have that work ready for review once the current ExternalProject MR is merged. I’ll add a comment about this to the new MR when I put it up.
