1
0
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:
Mathieu Schroeter 2017-08-04 22:19:47 +02:00
parent 31c5a4c903
commit 4ff6af5cbb

View File

@ -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