mirror of
https://github.com/blupi-games/planetblupi-dev
synced 2024-12-30 13:55:36 +01:00
Fix configure options for SDL2 on all OSes
This commit is contained in:
parent
31c5a4c903
commit
4ff6af5cbb
@ -153,7 +153,7 @@ ExternalProject_Add (FFmpeg_Project
|
||||
## SDL2
|
||||
#######
|
||||
|
||||
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
|
||||
if (UNIX AND NOT APPLE)
|
||||
set (SDL2_CONFIGURE --enable-video-x11
|
||||
--enable-x11-shared
|
||||
--enable-video-wayland
|
||||
@ -166,12 +166,13 @@ if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
|
||||
--enable-sndio-shared
|
||||
--enable-pulseaudio
|
||||
--enable-pulseaudio-shared)
|
||||
elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
|
||||
elseif (MINGW)
|
||||
set (SDL2_CONFIGURE --enable-directx
|
||||
--enable-render-d3d
|
||||
--enable-video-opengl)
|
||||
else ()
|
||||
set (SDL2_CONFIGURE)
|
||||
elseif (APPLE)
|
||||
set (SDL2_CONFIGURE --enable-video-opengl
|
||||
--enable-video-cocoa)
|
||||
endif ()
|
||||
|
||||
ExternalProject_Add (SDL2_Project
|
||||
|
Loading…
x
Reference in New Issue
Block a user