Add QNX as a platform to the cmake build files
parent
8029a767ee
commit
b47eeb8488
|
@ -807,6 +807,8 @@ macro(CheckPTHREAD)
|
||||||
elseif(EMSCRIPTEN)
|
elseif(EMSCRIPTEN)
|
||||||
set(PTHREAD_CFLAGS "-D_REENTRANT -pthread")
|
set(PTHREAD_CFLAGS "-D_REENTRANT -pthread")
|
||||||
set(PTHREAD_LDFLAGS "-pthread")
|
set(PTHREAD_LDFLAGS "-pthread")
|
||||||
|
elseif(QNX)
|
||||||
|
# pthread support is baked in
|
||||||
else()
|
else()
|
||||||
set(PTHREAD_CFLAGS "-D_REENTRANT")
|
set(PTHREAD_CFLAGS "-D_REENTRANT")
|
||||||
set(PTHREAD_LDFLAGS "-lpthread")
|
set(PTHREAD_LDFLAGS "-lpthread")
|
||||||
|
|
|
@ -54,6 +54,8 @@ macro(SDL_DetectCMakePlatform)
|
||||||
set(SDL_CMAKE_PLATFORM Android)
|
set(SDL_CMAKE_PLATFORM Android)
|
||||||
elseif(CMAKE_SYSTEM_NAME MATCHES "Emscripten.*")
|
elseif(CMAKE_SYSTEM_NAME MATCHES "Emscripten.*")
|
||||||
set(SDL_CMAKE_PLATFORM Emscripten)
|
set(SDL_CMAKE_PLATFORM Emscripten)
|
||||||
|
elseif(CMAKE_SYSTEM_NAME MATCHES "QNX.*")
|
||||||
|
set(SDL_CMAKE_PLATFORM QNX)
|
||||||
elseif(CMAKE_SYSTEM_NAME MATCHES "BeOS.*")
|
elseif(CMAKE_SYSTEM_NAME MATCHES "BeOS.*")
|
||||||
message_error("BeOS support has been removed as of SDL 2.0.2.")
|
message_error("BeOS support has been removed as of SDL 2.0.2.")
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue