mirror of
https://github.com/QuasarApp/QuasarAppCI.git
synced 2025-04-26 13:54:31 +00:00
fix cmake
This commit is contained in:
parent
509780225f
commit
b1b1227f90
@ -16,17 +16,21 @@ class CMake(Make):
|
||||
return "C"
|
||||
|
||||
def make(self, cxxFlags=[]):
|
||||
return self.makeTarget('all', cxxFlags)
|
||||
return self.makeTarget('', cxxFlags)
|
||||
|
||||
def makeTarget(self, target, cxxFlags=[]):
|
||||
command = 'cmake --build cmake_build'
|
||||
command += ' --config Release --target ' + target
|
||||
command = 'cmake --build cmake_build --config Release'
|
||||
|
||||
if len(target):
|
||||
command += ' --target ' + target
|
||||
|
||||
cpus = multiprocessing.cpu_count()
|
||||
if cpus:
|
||||
command += ' --parallel ' + str(cpus)
|
||||
|
||||
if len(cxxFlags):
|
||||
command += ' -- ' + ' '.join(cxxFlags)
|
||||
|
||||
return command
|
||||
|
||||
def makeCommand(self, props):
|
||||
|
Loading…
x
Reference in New Issue
Block a user