diff options
| author | Egor Tensin <egor@tensin.name> | 2026-07-01 16:22:49 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-07-01 16:22:49 +0200 |
| commit | af8c6187a943d75e887b7443c345b8fa34774646 (patch) | |
| tree | 766dee00464f62bbcdb5dd054a07e6b9c37d20e3 /project/toolset.py | |
| parent | add a FIXME comment about something I don't remember (diff) | |
| download | cmake-common-af8c6187a943d75e887b7443c345b8fa34774646.tar.gz cmake-common-af8c6187a943d75e887b7443c345b8fa34774646.zip | |
a shorter code path
Diffstat (limited to 'project/toolset.py')
| -rw-r--r-- | project/toolset.py | 6 |
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" |
