CMake: don't search SDL on macOS

It doesn't compile when enabled.
This commit is contained in:
Maarten Bent
2019-02-03 19:01:00 +01:00
parent 9886c25645
commit 6be0e7749c

View File

@@ -362,7 +362,7 @@ if(wxUSE_GUI)
set(wxUSE_GSTREAMER_PLAYER OFF)
endif()
if(wxUSE_SOUND AND UNIX AND wxUSE_LIBSDL)
if(wxUSE_SOUND AND wxUSE_LIBSDL AND UNIX AND NOT APPLE)
find_package(SDL2)
if(NOT SDL2_FOUND)
find_package(SDL)