CMake: Check for libSDL only on Unix
This commit is contained in:
@@ -77,7 +77,7 @@ if(WXGTK AND wxUSE_PRIVATE_FONTS)
|
||||
wx_lib_include_directories(core PUBLIC ${FONTCONFIG_INCLUDE_DIR})
|
||||
wx_lib_link_libraries(core PUBLIC ${FONTCONFIG_LIBRARIES})
|
||||
endif()
|
||||
if(UNIX AND wxUSE_LIBSDL)
|
||||
if(wxUSE_LIBSDL)
|
||||
if(SDL2_FOUND)
|
||||
wx_lib_include_directories(core PUBLIC ${SDL2_INCLUDE_DIR})
|
||||
wx_lib_link_libraries(core PUBLIC ${SDL2_LIBRARY})
|
||||
|
@@ -74,9 +74,9 @@ wx_option(wxUSE_LIBLZMA "use LZMA compression" OFF)
|
||||
set(wxTHIRD_PARTY_LIBRARIES ${wxTHIRD_PARTY_LIBRARIES} wxUSE_LIBLZMA "use liblzma for LZMA compression")
|
||||
|
||||
wx_option(wxUSE_OPENGL "use OpenGL (or Mesa)")
|
||||
wx_option(wxUSE_LIBSDL "use SDL for audio on Unix")
|
||||
|
||||
if(UNIX)
|
||||
wx_option(wxUSE_LIBSDL "use SDL for audio on Unix")
|
||||
wx_option(wxUSE_LIBICONV "use libiconv (character conversion)")
|
||||
wx_option(wxUSE_LIBNOTIFY "use libnotify for notifications")
|
||||
wx_option(wxUSE_XTEST "use XTest extension")
|
||||
|
Reference in New Issue
Block a user