cmake: Preseed CMake cache for Emscripten builds.

Makes a from-scratch build on this laptop go from 2 minutes 42 seconds to
28 seconds!
This commit is contained in:
Ryan C. Gordon authored and Anonymous Maarten committed 2024-07-25 16:42:11 +00:00
1 parent 0cd4fc7c87
commit 546cd3ac83
3 files changed
+190 -5

No files matched your search

+5 -1
View File
@@ -52,10 +52,14 @@ include("${SDL3_SOURCE_DIR}/cmake/sdltargets.cmake")
include("${SDL3_SOURCE_DIR}/cmake/GetGitRevisionDescription.cmake")
include("${SDL3_SOURCE_DIR}/cmake/3rdparty.cmake")
include("${SDL3_SOURCE_DIR}/cmake/PreseedMSVCCache.cmake")
include("${SDL3_SOURCE_DIR}/cmake/PreseedEmscriptenCache.cmake")
SDL_DetectCompiler()
SDL_DetectTargetCPUArchitectures(SDL_CPUS)
SDL_Preseed_CMakeCache()
if (SDL_PRESEED_FUNCTION_DEFINED)
SDL_Preseed_CMakeCache()
endif()
# Increment this if there is an incompatible change - but if that happens,
# we should rename the library from SDL3 to SDL4, at which point this would