setup-sdl: Fix previous commit

From 14e85f0b49be5a6f87271038304291711aa9d63e Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Sat, 1 Jul 2023 02:23:08 +0200
Subject: [PATCH] Fix previous commit

---
 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 b15da41..c90f10c 100644
--- a/packed/index.js
+++ b/packed/index.js
@@ -453,7 +453,7 @@ function run() {
                     }
                     CMAKE_GENERATOR = core.getInput("cmake-generator");
                     if (CMAKE_GENERATOR && CMAKE_GENERATOR.length > 0) {
-                        cmake_configure_args.push('-G "${CMAKE_GENERATOR}"');
+                        cmake_configure_args.push("-G \"".concat(CMAKE_GENERATOR, "\""));
                     }
                     return [4 /*yield*/, cmake_configure_build({
                             source_dir: SOURCE_DIR,
diff --git a/src/main.ts b/src/main.ts
index eb9b87d..f6ee6e6 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -385,7 +385,7 @@ async function run() {
 
     const CMAKE_GENERATOR = core.getInput("cmake-generator");
     if (CMAKE_GENERATOR && CMAKE_GENERATOR.length > 0) {
-      cmake_configure_args.push('-G "${CMAKE_GENERATOR}"');
+      cmake_configure_args.push(`-G "${CMAKE_GENERATOR}"`);
     }
 
     await cmake_configure_build({