From ac9e8691a23bf8089563f6927c3ef5d6fca0196c Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Thu, 21 Jul 2022 14:49:35 +0200 Subject: [PATCH] cmake: only build testnative when X11 is available --- test/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 0781aad13..9415c83fe 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -116,7 +116,7 @@ if(APPLE) testutils.c) elseif(WINDOWS) add_executable(testnative testnative.c testnativew32.c testutils.c) -elseif(SDL_X11) +elseif(HAVE_X11) add_executable(testnative testnative.c testnativex11.c testutils.c) target_link_libraries(testnative X11) endif() @@ -313,7 +313,7 @@ else() teststreaming testviewport ) - if(WINDOWS OR APPLE OR SDL_X11) + if(WINDOWS OR APPLE OR HAVE_X11) list(APPEND NEEDS_RESOURCES testnative) endif() endif()