Accept CMAKE_OSX_ARCHITECTURES from command line.
This commit is contained in:
parent
33799d3d6c
commit
c0c09baa35
2 changed files with 2 additions and 4 deletions
|
|
@ -44,7 +44,7 @@ def run(project, arguments, buildType=''):
|
|||
cmake.append('-DDESKTOP_APP_SPECIAL_TARGET=' + target)
|
||||
|
||||
cmake.extend(['-Werror=dev', '-Werror=deprecated', '--warn-uninitialized', '..' if not buildType else '../..'])
|
||||
command = ' '.join(cmake)
|
||||
command = '"' + '" "'.join(cmake) + '"'
|
||||
|
||||
if not os.path.exists(basePath):
|
||||
os.makedirs(basePath)
|
||||
|
|
|
|||
|
|
@ -15,9 +15,7 @@ function(report_bad_special_target)
|
|||
endfunction()
|
||||
|
||||
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.12 CACHE STRING "Minimum macOS deployment version" FORCE)
|
||||
if (DESKTOP_APP_QT6)
|
||||
set(CMAKE_OSX_ARCHITECTURES "x86_64;arm64" CACHE STRING "Target macOS architectures" FORCE)
|
||||
else()
|
||||
if (NOT DESKTOP_APP_QT6)
|
||||
set(CMAKE_OSX_ARCHITECTURES "x86_64" CACHE STRING "Target macOS architectures" FORCE)
|
||||
endif()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue