Explorar o código

cmake: fix building testautomation without X11 support

Anonymous Maarten %!s(int64=3) %!d(string=hai) anos
pai
achega
684709a5b6
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      test/CMakeLists.txt

+ 4 - 0
test/CMakeLists.txt

@@ -233,6 +233,10 @@ if(HAVE_WFORMAT_EXTRA_ARGS)
     target_compile_definitions(testautomation PRIVATE HAVE_WFORMAT_EXTRA_ARGS)
     target_compile_definitions(testautomation PRIVATE HAVE_WFORMAT_EXTRA_ARGS)
 endif()
 endif()
 
 
+if(NOT HAVE_X11)
+    target_compile_definitions(testautomation PRIVATE SDL_DISABLE_SYSWM_X11)
+endif()
+
 if(SDL_DUMMYAUDIO)
 if(SDL_DUMMYAUDIO)
   list(APPEND SDL_TESTS_NONINTERACTIVE
   list(APPEND SDL_TESTS_NONINTERACTIVE
     testaudioinfo
     testaudioinfo