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:
committed by
Anonymous Maarten
parent
0cd4fc7c87
commit
546cd3ac83
@@ -1,7 +1,8 @@
|
||||
cmake_dependent_option(SDL_MSVC_PRESEED "Preseed CMake cache for MSVC to speed up configuration" ON "MSVC;NOT WINDOWS_STORE" OFF)
|
||||
|
||||
function(SDL_Preseed_CMakeCache)
|
||||
if(SDL_MSVC_PRESEED)
|
||||
if(SDL_MSVC_PRESEED)
|
||||
set(SDL_PRESEED_FUNCTION_DEFINED TRUE)
|
||||
function(SDL_Preseed_CMakeCache)
|
||||
set(COMPILER_SUPPORTS_FDIAGNOSTICS_COLOR_ALWAYS "" CACHE INTERNAL "Test COMPILER_SUPPORTS_FDIAGNOSTICS_COLOR_ALWAYS")
|
||||
set(HAVE_ALLOCA_H "" CACHE INTERNAL "Have include alloca.h")
|
||||
set(HAVE_AUDIOCLIENT_H "1" CACHE INTERNAL "Have include audioclient.h")
|
||||
@@ -180,5 +181,5 @@ function(SDL_Preseed_CMakeCache)
|
||||
set(HAVE_ROAPI_H "" CACHE INTERNAL "Have include roapi.h")
|
||||
set(HAVE_WINDOWS_GAMING_INPUT_H "" CACHE INTERNAL "Test HAVE_WINDOWS_GAMING_INPUT_H")
|
||||
endif()
|
||||
endif()
|
||||
endfunction()
|
||||
endfunction()
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user