4
0
mirror of https://github.com/QuasarApp/QuasarAppCI.git synced 2025-04-30 23:54:33 +00:00

fix cmake

This commit is contained in:
Andrei Yankovich 2022-01-21 18:20:45 +03:00
parent 509780225f
commit b1b1227f90

@ -16,17 +16,21 @@ class CMake(Make):
return "C" return "C"
def make(self, cxxFlags=[]): def make(self, cxxFlags=[]):
return self.makeTarget('all', cxxFlags) return self.makeTarget('', cxxFlags)
def makeTarget(self, target, cxxFlags=[]): def makeTarget(self, target, cxxFlags=[]):
command = 'cmake --build cmake_build' command = 'cmake --build cmake_build --config Release'
command += ' --config Release --target ' + target
if len(target):
command += ' --target ' + target
cpus = multiprocessing.cpu_count() cpus = multiprocessing.cpu_count()
if cpus: if cpus:
command += ' --parallel ' + str(cpus) command += ' --parallel ' + str(cpus)
if len(cxxFlags):
command += ' -- ' + ' '.join(cxxFlags) command += ' -- ' + ' '.join(cxxFlags)
return command return command
def makeCommand(self, props): def makeCommand(self, props):