Skip to content

Commit 4d5dacc

Browse files
author
ajohns
committed
Merge remote-tracking branch 'willjp/master'
2 parents 31128f0 + bfc39eb commit 4d5dacc

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/rezplugins/build_system/cmake.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class CMakeBuildSystem(BuildSystem):
4141
'codeblocks': "CodeBlocks - Unix Makefiles",
4242
'make': "Unix Makefiles",
4343
'nmake': "NMake Makefiles",
44+
'mingw': "MinGW Makefiles",
4445
'xcode': "Xcode"}
4546

4647
build_targets = ["Debug", "Release", "RelWithDebInfo"]
@@ -175,14 +176,20 @@ def _pr(s):
175176
return ret
176177

177178
# assemble make command
179+
make_binary = self.settings.make_binary
178180
if self.settings.make_binary:
179181
cmd = [self.settings.make_binary]
182+
elif self.cmake_build_system == 'mingw':
183+
cmd = ["mingw32-make"]
184+
elif self.cmake_build_system == 'nmake':
185+
make_binary = 'nmake'
186+
cmd = ["nmake"]
180187
else:
181188
cmd = ["make"]
182189
cmd += (self.child_build_args or [])
183190

184191
# nmake has no -j
185-
if self.settings.make_binary != 'nmake':
192+
if make_binary != 'nmake':
186193
if not any(x.startswith("-j") for x in (self.child_build_args or [])):
187194
n = variant.config.build_thread_count
188195
cmd.append("-j%d" % n)

src/rezplugins/build_system/rezconfig.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030

3131
if os.name != "posix":
3232
cmake["build_system"] = "nmake"
33-
cmake["make_binary"] = "nmake"
3433

3534

3635
# Copyright 2013-2016 Allan Johns.

0 commit comments

Comments
 (0)