Explorar o código

cmake: only build testnative when X11 is available

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

+ 2 - 2
test/CMakeLists.txt

@@ -116,7 +116,7 @@ if(APPLE)
                               testutils.c)
                               testutils.c)
 elseif(WINDOWS)
 elseif(WINDOWS)
     add_executable(testnative testnative.c testnativew32.c testutils.c)
     add_executable(testnative testnative.c testnativew32.c testutils.c)
-elseif(SDL_X11)
+elseif(HAVE_X11)
     add_executable(testnative testnative.c testnativex11.c testutils.c)
     add_executable(testnative testnative.c testnativex11.c testutils.c)
     target_link_libraries(testnative X11)
     target_link_libraries(testnative X11)
 endif()
 endif()
@@ -313,7 +313,7 @@ else()
         teststreaming
         teststreaming
         testviewport
         testviewport
     )
     )
-    if(WINDOWS OR APPLE OR SDL_X11)
+    if(WINDOWS OR APPLE OR HAVE_X11)
         list(APPEND NEEDS_RESOURCES testnative)
         list(APPEND NEEDS_RESOURCES testnative)
     endif()
     endif()
 endif()
 endif()