Commit 7730e448 authored by Gregor Jasny's avatar Gregor Jasny

Apple: Remove code signing requirements for non-macOS

Issue: #17870
parent 7ccc7b25
...@@ -358,6 +358,8 @@ Id flags: ${testflags} ${CMAKE_${lang}_COMPILER_ID_FLAGS_ALWAYS} ...@@ -358,6 +358,8 @@ Id flags: ${testflags} ${CMAKE_${lang}_COMPILER_ID_FLAGS_ALWAYS}
if(DEFINED CMAKE_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY) if(DEFINED CMAKE_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY)
set(id_code_sign_identity set(id_code_sign_identity
"CODE_SIGN_IDENTITY = \"${CMAKE_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY}\";") "CODE_SIGN_IDENTITY = \"${CMAKE_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY}\";")
elseif(_CMAKE_DISABLE_CODE_SIGNING_FOR_COMPILER_ID_DETECTION)
set(id_code_sign_identity "CODE_SIGN_IDENTITY = \"\";")
else() else()
set(id_code_sign_identity "") set(id_code_sign_identity "")
endif() endif()
......
...@@ -3,3 +3,5 @@ include(Platform/Darwin-Initialize) ...@@ -3,3 +3,5 @@ include(Platform/Darwin-Initialize)
if(NOT _CMAKE_OSX_SYSROOT_PATH MATCHES "/iPhone(OS|Simulator)") if(NOT _CMAKE_OSX_SYSROOT_PATH MATCHES "/iPhone(OS|Simulator)")
message(FATAL_ERROR "${CMAKE_OSX_SYSROOT} is not an iOS SDK") message(FATAL_ERROR "${CMAKE_OSX_SYSROOT} is not an iOS SDK")
endif() endif()
set(_CMAKE_DISABLE_CODE_SIGNING_FOR_COMPILER_ID_DETECTION ON)
...@@ -3,3 +3,5 @@ include(Platform/Darwin-Initialize) ...@@ -3,3 +3,5 @@ include(Platform/Darwin-Initialize)
if(NOT _CMAKE_OSX_SYSROOT_PATH MATCHES "/AppleTV(OS|Simulator)") if(NOT _CMAKE_OSX_SYSROOT_PATH MATCHES "/AppleTV(OS|Simulator)")
message(FATAL_ERROR "${CMAKE_OSX_SYSROOT} is not an tvOS SDK") message(FATAL_ERROR "${CMAKE_OSX_SYSROOT} is not an tvOS SDK")
endif() endif()
set(_CMAKE_DISABLE_CODE_SIGNING_FOR_COMPILER_ID_DETECTION ON)
...@@ -3,3 +3,5 @@ include(Platform/Darwin-Initialize) ...@@ -3,3 +3,5 @@ include(Platform/Darwin-Initialize)
if(NOT _CMAKE_OSX_SYSROOT_PATH MATCHES "/Watch(OS|Simulator)") if(NOT _CMAKE_OSX_SYSROOT_PATH MATCHES "/Watch(OS|Simulator)")
message(FATAL_ERROR "${CMAKE_OSX_SYSROOT} is not an watchOS SDK") message(FATAL_ERROR "${CMAKE_OSX_SYSROOT} is not an watchOS SDK")
endif() endif()
set(_CMAKE_DISABLE_CODE_SIGNING_FOR_COMPILER_ID_DETECTION ON)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment