setup-sdl: CMake option name to build sdl test library changed to SDL_TEST_LIBRARY

From 0bed2a36bfbfd48dbbb1ef16c3ec01314cb25cf5 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Sat, 12 Aug 2023 13:52:22 +0200
Subject: [PATCH] CMake option name to build sdl test library changed to
 SDL_TEST_LIBRARY

---
 packed/index.js | 2 +-
 src/main.ts     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/packed/index.js b/packed/index.js
index 88fabed..fa2c760 100644
--- a/packed/index.js
+++ b/packed/index.js
@@ -811,7 +811,7 @@ function run() {
                         install_linux_dependencies(PACKAGE_MANAGER_TYPE);
                     }
                     cmake_configure_args = (0, util_1.shlex_split)(INPUT_CMAKE_CONFIGURE_ARGUMENTS);
-                    cmake_configure_args.push("-DSDL_TEST=".concat(BUILD_SDL_TEST), "-DCMAKE_BUILD_TYPE=".concat(CMAKE_BUILD_TYPE), "-DCMAKE_INSTALL_BINDIR=bin", "-DCMAKE_INSTALL_INCLUDEDIR=include", "-DCMAKE_INSTALL_LIBDIR=lib");
+                    cmake_configure_args.push("-DSDL_TEST_LIBRARY=".concat(BUILD_SDL_TEST), "-DCMAKE_BUILD_TYPE=".concat(CMAKE_BUILD_TYPE), "-DCMAKE_INSTALL_BINDIR=bin", "-DCMAKE_INSTALL_INCLUDEDIR=include", "-DCMAKE_INSTALL_LIBDIR=lib");
                     if (CMAKE_TOOLCHAIN_FILE) {
                         cmake_configure_args.push("-DCMAKE_TOOLCHAIN_FILE=\"".concat(CMAKE_TOOLCHAIN_FILE, "\""));
                     }
diff --git a/src/main.ts b/src/main.ts
index e2d0a2d..a00745e 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -577,7 +577,7 @@ async function run() {
     const cmake_configure_args = shlex_split(INPUT_CMAKE_CONFIGURE_ARGUMENTS);
 
     cmake_configure_args.push(
-      `-DSDL_TEST=${BUILD_SDL_TEST}`,
+      `-DSDL_TEST_LIBRARY=${BUILD_SDL_TEST}`,
       `-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}`,
       "-DCMAKE_INSTALL_BINDIR=bin",
       "-DCMAKE_INSTALL_INCLUDEDIR=include",