mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-27 19:19:41 +08:00
cmake: SDL_process on unix needs vfork symbol
Current FIL-C toolchains don't have vfork
This commit is contained in:
committed by
Anonymous Maarten
parent
4e8f93c6f1
commit
766532948e
+4
-1
@@ -3461,7 +3461,10 @@ int main(void)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
" HAVE_POSIX_SPAWN)
|
" HAVE_POSIX_SPAWN)
|
||||||
if(HAVE_POSIX_SPAWN)
|
if(NOT APPLE)
|
||||||
|
check_symbol_exists(vfork "unistd.h" LIBC_HAS_VFORK)
|
||||||
|
endif()
|
||||||
|
if(HAVE_POSIX_SPAWN AND (APPLE OR LIBC_HAS_VFORK))
|
||||||
sdl_glob_sources(
|
sdl_glob_sources(
|
||||||
"${SDL3_SOURCE_DIR}/src/process/posix/*.c"
|
"${SDL3_SOURCE_DIR}/src/process/posix/*.c"
|
||||||
"${SDL3_SOURCE_DIR}/src/process/posix/*.h"
|
"${SDL3_SOURCE_DIR}/src/process/posix/*.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user