mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Xcode: Use ad-hoc signing during compiler id for iOS Mac Catalyst
In commit2785364b7b(iOS: Add support for Mac Catalyst, 2024-07-02, v3.31.0-rc1~371^2) we forgot to update the conditions to use ad-hoc signing from commit89e1113e0c(Xcode: Use ad-hoc signing during compiler id on macOS, 2022-06-10, v3.22.6~4^2~2). Fixes: #26376
This commit is contained in:
@@ -734,7 +734,7 @@ Id flags: ${testflags} ${CMAKE_${lang}_COMPILER_ID_FLAGS_ALWAYS}
|
||||
set(id_clang_cxx_library "CLANG_CXX_LIBRARY = \"${CMAKE_MATCH_3}\";")
|
||||
endif()
|
||||
endif()
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND CMAKE_OSX_SYSROOT MATCHES "^$|[Mm][Aa][Cc][Oo][Ss]")
|
||||
if(CMAKE_OSX_SYSROOT MATCHES "[Mm][Aa][Cc][Oo][Ss]" OR (CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND CMAKE_OSX_SYSROOT STREQUAL ""))
|
||||
set(id_code_sign_identity "-")
|
||||
# When targeting macOS, use only the host architecture.
|
||||
if (_CMAKE_APPLE_ARCHS_DEFAULT)
|
||||
|
||||
Reference in New Issue
Block a user