SDL: cmake: convert spaces in PTHREAD_CFLAGS to ';'

From a3ae26ddd0a34ee3f5f39311dbdf420b24d95939 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Fri, 13 Jan 2023 19:01:36 +0100
Subject: [PATCH] cmake: convert spaces in PTHREAD_CFLAGS to ';'

---
 cmake/sdlchecks.cmake | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cmake/sdlchecks.cmake b/cmake/sdlchecks.cmake
index 24013499e916..3037a6329c6d 100644
--- a/cmake/sdlchecks.cmake
+++ b/cmake/sdlchecks.cmake
@@ -814,6 +814,7 @@ macro(CheckPTHREAD)
       }" HAVE_PTHREADS)
     if(HAVE_PTHREADS)
       set(SDL_THREAD_PTHREAD 1)
+      separate_arguments(PTHREAD_CFLAGS)
       target_compile_options(sdl-build-options INTERFACE ${PTHREAD_CFLAGS})
       list(APPEND SDL_EXTRA_LDFLAGS ${PTHREAD_LDFLAGS})
       list(APPEND SDL_PC_CFLAGS ${PTHREAD_CFLAGS})