You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
356 B
9 lines
356 B
3 years ago
|
function(xcode_sign_adhoc target)
|
||
|
if(CMAKE_GENERATOR STREQUAL "Xcode" AND
|
||
|
"${CMAKE_SYSTEM_NAME};${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "Darwin;arm64")
|
||
|
# Xcode runs POST_BUILD before signing, so let the linker use ad-hoc signing.
|
||
|
# See CMake Issue 21845.
|
||
|
target_link_options(${target} PRIVATE LINKER:-adhoc_codesign)
|
||
|
endif()
|
||
|
endfunction()
|