summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-02-09 16:37:11 (GMT)
committerBrad King <brad.king@kitware.com>2024-02-09 16:37:11 (GMT)
commit871a4c5aacce720c22dd5569f79c4dcb0ca3680a (patch)
tree69c2b0f66465e4a40ae472998eb13f07f03fd5bb /Modules
parentc673511263822c688fa302120a29e1e0cf812c0b (diff)
parent22eb1b6d678f13506e9cfa92090d9ff9886f0c8c (diff)
downloadCMake-871a4c5aacce720c22dd5569f79c4dcb0ca3680a.zip
CMake-871a4c5aacce720c22dd5569f79c4dcb0ca3680a.tar.gz
CMake-871a4c5aacce720c22dd5569f79c4dcb0ca3680a.tar.bz2
Merge branch 'backport-3.28-visionOS' into visionOS
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Platform/Apple-Clang.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/Platform/Apple-Clang.cmake b/Modules/Platform/Apple-Clang.cmake
index 7986a37..bd5ba9a 100644
--- a/Modules/Platform/Apple-Clang.cmake
+++ b/Modules/Platform/Apple-Clang.cmake
@@ -35,10 +35,10 @@ macro(__apple_compiler_clang lang)
set(CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG "-mtvos-version-min=")
elseif(_CMAKE_OSX_SYSROOT_PATH MATCHES "/AppleTVSimulator")
set(CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG "-mtvos-simulator-version-min=")
- elseif(_CMAKE_OSX_SYSROOT_PATH MATCHES "/XROS")
- set(CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG "-mtargetos=xros")
+ elseif(_CMAKE_OSX_SYSROOT_PATH MATCHES "/XROS")
+ set(CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG "--target=<ARCH>-apple-xros<VERSION_MIN>")
elseif(_CMAKE_OSX_SYSROOT_PATH MATCHES "/XRSimulator")
- set(CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG "-mtargetos=xros")
+ set(CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG "--target=<ARCH>-apple-xros<VERSION_MIN>-simulator")
elseif(_CMAKE_OSX_SYSROOT_PATH MATCHES "/WatchOS")
set(CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG "-mwatchos-version-min=")
elseif(_CMAKE_OSX_SYSROOT_PATH MATCHES "/WatchSimulator")