cmake: gate all preseeding behind SDL_PRESEED option

This commit is contained in:
Anonymous Maarten 2024-07-25 18:13:31 +02:00 committed by Anonymous Maarten
parent 546cd3ac83
commit 2aad26abb0
3 changed files with 12 additions and 13 deletions

View file

@ -1,7 +1,4 @@
cmake_dependent_option(SDL_EMSCRIPTEN_PRESEED "Preseed CMake cache for Emscripten to speed up configuration" ON "EMSCRIPTEN" OFF)
if(SDL_EMSCRIPTEN_PRESEED)
set(SDL_PRESEED_FUNCTION_DEFINED TRUE)
if(EMSCRIPTEN)
function(SDL_Preseed_CMakeCache)
set(COMPILER_SUPPORTS_FDIAGNOSTICS_COLOR_ALWAYS "1" CACHE INTERNAL "Test COMPILER_SUPPORTS_FDIAGNOSTICS_COLOR_ALWAYS")
set(HAVE_ALLOCA_H "1" CACHE INTERNAL "Have include alloca.h")
@ -177,4 +174,3 @@ if(SDL_EMSCRIPTEN_PRESEED)
set(HAVE_DLOPEN_IN_LIBC "1" CACHE INTERNAL "Have symbol dlopen")
endfunction()
endif()