cmake: switch iOS and watchOS

main
Anonymous Maarten 2024-04-08 19:25:38 +02:00
parent 2d640d0b59
commit 9f83647aec
1 changed files with 2 additions and 2 deletions

View File

@ -11,9 +11,9 @@ macro(SDL_DetectCMakePlatform)
elseif(CMAKE_SYSTEM_NAME MATCHES ".*tvOS.*") elseif(CMAKE_SYSTEM_NAME MATCHES ".*tvOS.*")
set(SDL_CMAKE_PLATFORM tvOS) set(SDL_CMAKE_PLATFORM tvOS)
elseif(CMAKE_SYSTEM_NAME MATCHES ".*iOS.*") elseif(CMAKE_SYSTEM_NAME MATCHES ".*iOS.*")
set(SDL_CMAKE_PLATFORM watchOS)
elseif(CMAKE_SYSTEM_NAME MATCHES ".*watchOS.*")
set(SDL_CMAKE_PLATFORM iOS) set(SDL_CMAKE_PLATFORM iOS)
elseif(CMAKE_SYSTEM_NAME MATCHES ".*watchOS.*")
set(SDL_CMAKE_PLATFORM watchOS)
elseif (CMAKE_SYSTEM_NAME MATCHES "visionOS") elseif (CMAKE_SYSTEM_NAME MATCHES "visionOS")
set(SDL_CMAKE_PLATFORM visionOS) set(SDL_CMAKE_PLATFORM visionOS)
else() else()