cmake: detect RISCOS platform before GNU/Hurd
This commit is contained in:
committed by
Sam Lantinga
parent
171885010d
commit
de742e9f9a
@@ -26,6 +26,8 @@ function(SDL_DetectCMakePlatform)
|
|||||||
set(sdl_cmake_platform ngage)
|
set(sdl_cmake_platform ngage)
|
||||||
elseif(PS2)
|
elseif(PS2)
|
||||||
set(sdl_cmake_platform ps2)
|
set(sdl_cmake_platform ps2)
|
||||||
|
elseif(RISCOS)
|
||||||
|
set(sdl_cmake_platform RISCOS)
|
||||||
elseif(VITA)
|
elseif(VITA)
|
||||||
set(sdl_cmake_platform Vita)
|
set(sdl_cmake_platform Vita)
|
||||||
elseif(CMAKE_SYSTEM_NAME MATCHES ".*Linux")
|
elseif(CMAKE_SYSTEM_NAME MATCHES ".*Linux")
|
||||||
@@ -37,6 +39,7 @@ function(SDL_DetectCMakePlatform)
|
|||||||
elseif(CMAKE_SYSTEM_NAME MATCHES "kOpenBSD.*|OpenBSD.*")
|
elseif(CMAKE_SYSTEM_NAME MATCHES "kOpenBSD.*|OpenBSD.*")
|
||||||
set(sdl_cmake_platform OpenBSD)
|
set(sdl_cmake_platform OpenBSD)
|
||||||
elseif(CMAKE_SYSTEM_NAME STREQUAL "GNU")
|
elseif(CMAKE_SYSTEM_NAME STREQUAL "GNU")
|
||||||
|
# GNU/Hurd must be checked AFTER RISCOS
|
||||||
set(sdl_cmake_platform Hurd)
|
set(sdl_cmake_platform Hurd)
|
||||||
elseif(CMAKE_SYSTEM_NAME MATCHES ".*BSDI.*")
|
elseif(CMAKE_SYSTEM_NAME MATCHES ".*BSDI.*")
|
||||||
set(sdl_cmake_platform BSDi)
|
set(sdl_cmake_platform BSDi)
|
||||||
|
|||||||
Reference in New Issue
Block a user