From 32e7921f9805bbd90671c4b6579a5565078b26b1 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Sat, 21 Jan 2023 01:57:10 +0100 Subject: [PATCH] cmake: by default, link tests to SDL3.dll on Windows --- test/CMakeLists.txt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index a7a1dbd5a4..e8bb837f10 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -13,11 +13,6 @@ include(CMakePushCheckState) include(GNUInstallDirs) set(SDL_TESTS_LINK_SHARED_DEFAULT ON) -if(WINDOWS) - # Avoid missing dll error by linking to static SDL library, - # alternatively, copy dll to build directory in a post build event. - set(SDL_TESTS_LINK_SHARED_DEFAULT OFF) -endif() if(EMSCRIPTEN OR N3DS OR PS2 OR PSP OR RISCOS OR VITA) set(SDL_TESTS_LINK_SHARED_DEFAULT OFF) endif() @@ -361,6 +356,7 @@ endif() set(TESTS_ENVIRONMENT SDL_AUDIO_DRIVER=dummy SDL_VIDEO_DRIVER=dummy + PATH=$ ) function(sdl_set_test_timeout TEST TIMEOUT)