set(GODOT_ARCH "x86_64" CACHE STRING "Target architecture (x86_64, arm64, arm32, x86_32, custom)") option(GODOT_USE_STATIC_CPP "Link MinGW/MSVC C++ runtime libraries statically" ON) string(REGEX MATCH "32$|64$" DEFAULT_GODOT_BITS "${GODOT_ARCH}") set(GODOT_BITS "${DEFAULT_GODOT_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_C_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++ > > $<${compiler_is_clang}: -lstdc++ > ) list(APPEND GODOT_COMPILE_WARNING_FLAGS $<$: -Wwrite-strings > )