diff options
author | Brad King <brad.king@kitware.com> | 2022-06-11 09:38:57 +0000 |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-06-11 05:39:11 -0400 |
commit | aafa598e249b8daaa1142a79a1bbc6b69ca9aa40 (patch) | |
tree | 5ab466380de96f47461b1d39fe8abeaeaf1d50f5 /Modules/CMakeDetermineCompilerId.cmake | |
parent | 6a9651d8619c4c5ef26ef22c15f1151963769443 (diff) | |
parent | 627c08e28bdf35a85b53f8b5fe46de03de80c2fd (diff) | |
download | cmake-aafa598e249b8daaa1142a79a1bbc6b69ca9aa40.tar.gz |
Merge topic 'xcode-14'
627c08e28b Tests: Teach RunCMake to ignore Xcode DVTSDK warnings
ab40020b17 Xcode: Suppress "Run Script" build phase warning during compiler id
89e1113e0c Xcode: Use ad-hoc signing during compiler id on macOS
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7350
Diffstat (limited to 'Modules/CMakeDetermineCompilerId.cmake')
-rw-r--r-- | Modules/CMakeDetermineCompilerId.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/CMakeDetermineCompilerId.cmake b/Modules/CMakeDetermineCompilerId.cmake index 0e8b2af3f2..2b19736d47 100644 --- a/Modules/CMakeDetermineCompilerId.cmake +++ b/Modules/CMakeDetermineCompilerId.cmake @@ -611,6 +611,7 @@ Id flags: ${testflags} ${CMAKE_${lang}_COMPILER_ID_FLAGS_ALWAYS} endif() endif() if(CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND CMAKE_OSX_SYSROOT MATCHES "^$|[Mm][Aa][Cc][Oo][Ss]") + set(id_code_sign_identity "-") # When targeting macOS, use only the host architecture. if (_CMAKE_APPLE_ARCHS_DEFAULT) set(id_archs "ARCHS = \"${_CMAKE_APPLE_ARCHS_DEFAULT}\";") @@ -620,6 +621,7 @@ Id flags: ${testflags} ${CMAKE_${lang}_COMPILER_ID_FLAGS_ALWAYS} set(id_arch_active "ONLY_ACTIVE_ARCH = YES;") endif() else() + set(id_code_sign_identity "") set(id_archs "") set(id_arch_active "ONLY_ACTIVE_ARCH = YES;") endif() |