summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-07-01 16:22:49 +0200
committerEgor Tensin <egor@tensin.name>2026-07-01 16:22:49 +0200
commitaf8c6187a943d75e887b7443c345b8fa34774646 (patch)
tree766dee00464f62bbcdb5dd054a07e6b9c37d20e3
parentadd a FIXME comment about something I don't remember (diff)
downloadcmake-common-af8c6187a943d75e887b7443c345b8fa34774646.tar.gz
cmake-common-af8c6187a943d75e887b7443c345b8fa34774646.zip
a shorter code path
-rw-r--r--project/toolset.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/project/toolset.py b/project/toolset.py
index 8751b57..4451d7c 100644
--- a/project/toolset.py
+++ b/project/toolset.py
@@ -447,10 +447,8 @@ class CMakeCustom(Toolset):
@staticmethod
def makefiles():
- if on_windows():
- if shutil.which("mingw32-make"):
- return "MinGW Makefiles"
- return "Unix Makefiles"
+ if on_windows() and shutil.which("mingw32-make"):
+ return "MinGW Makefiles"
# On Linux, make all the way:
return "Unix Makefiles"