mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-19 10:33:40 +08:00
cmake: fix building testautomation without X11 support
This commit is contained in:
committed by
Anonymous Maarten
parent
9cb5f0bfc6
commit
684709a5b6
@@ -233,6 +233,10 @@ if(HAVE_WFORMAT_EXTRA_ARGS)
|
||||
target_compile_definitions(testautomation PRIVATE HAVE_WFORMAT_EXTRA_ARGS)
|
||||
endif()
|
||||
|
||||
if(NOT HAVE_X11)
|
||||
target_compile_definitions(testautomation PRIVATE SDL_DISABLE_SYSWM_X11)
|
||||
endif()
|
||||
|
||||
if(SDL_DUMMYAUDIO)
|
||||
list(APPEND SDL_TESTS_NONINTERACTIVE
|
||||
testaudioinfo
|
||||
|
||||
Reference in New Issue
Block a user