set(ARCH "x86_64" CACHE STRING "Target architecture (x86_32, x86_64, CUSTOM)") option(USE_STATIC_CPP "Link MinGW/MSVC C++ runtime libraries statically" ON) string(REGEX MATCH "32$|64$" DEFAULT_BITS "${ARCH}") set(BITS "${DEFAULT_BITS}" CACHE STRING "Architecture bits. Needs to be set manually for custom architecture") list(APPEND GODOT_DEFINITIONS WINDOWS_ENABLED $<${compiler_is_msvc}: TYPED_METHOD_BIND NOMINMAX > ) list(APPEND GODOT_CC_FLAGS $<${compiler_is_msvc}: /utf-8 $<$: /MT > $<$>: /MD > > ) list(APPEND GODOT_LINK_FLAGS $<${compiler_is_msvc}: /WX > $<$: -Wl,--no-undefined $<$: -static -static-libgcc -static-libstdc++ > > ) list(APPEND GODOT_COMPILE_WARNING_FLAGS $<$: -Wwrite-strings > )