cmake: add qnx support

Co-authored-by: elahav <elahav@users.noreply.github.com>
This commit is contained in:
Anonymous Maarten
2023-09-29 18:53:47 +02:00
parent 145ad48c0e
commit 24d145f4b6
3 changed files with 38 additions and 2 deletions

View File

@@ -28,6 +28,8 @@ macro(SDL_DetectCMakePlatform)
set(SDL_CMAKE_PLATFORM AIX)
elseif(CMAKE_SYSTEM_NAME MATCHES "Minix.*")
set(SDL_CMAKE_PLATFORM MINIX)
elseif(CMAKE_SYSTEM_NAME MATCHES "QNX")
set(SDL_CMAKE_PLATFORM QNX)
endif()
elseif(APPLE)
if(CMAKE_SYSTEM_NAME MATCHES ".*Darwin.*")