Explicit disable codesign for macOS

This commit is contained in:
halx99 2021-08-13 10:19:24 +08:00
parent 4e0c597a38
commit 55f1947429
1 changed files with 5 additions and 0 deletions

View File

@ -300,6 +300,11 @@ function(setup_cocos_app_config app_name)
if(IOS AND (NOT ("${CMAKE_OSX_SYSROOT}" MATCHES ".*simulator.*")))
set_xcode_property(${APP_NAME} CODE_SIGNING_REQUIRED "YES")
set_xcode_property(${APP_NAME} CODE_SIGNING_ALLOWED "YES")
else()
# By default, explicit disable codesign for macOS PC
set_xcode_property(${APP_NAME} CODE_SIGN_IDENTITY "")
set_xcode_property(${APP_NAME} CODE_SIGNING_ALLOWED "NO")
set_xcode_property(${APP_NAME} CODE_SIGN_IDENTITY "NO")
endif()
elseif(MSVC)
# visual studio default is Console app, but we need Windows app