cmake: convert spaces in PTHREAD_CFLAGS to ';'

main
Anonymous Maarten 2023-01-13 19:01:36 +01:00
parent 67ddb4c5a2
commit a3ae26ddd0
1 changed files with 1 additions and 0 deletions

View File

@ -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})