set(CMAKE_SYSTEM_NAME      Windows)
set(CMAKE_SYSTEM_PROCESSOR x86_64)

# Please update the following.
set(CMAKE_C_COMPILER       "clang-cl")
set(CMAKE_CXX_COMPILER     "clang-cl")
set(CMAKE_AR               "llvm-lib")
set(CMAKE_C_FLAGS          "/nologo /c /MT /O2 /I${CMAKE_CURRENT_SOURCE_DIR}/resources/msvc-include /arch:AVX2")

# Magic
set(CMAKE_C_FLAGS_INIT "" CACHE STRING "" FORCE)
set(CMAKE_EXE_LINKER_FLAGS_INIT "" CACHE STRING "" FORCE)
set(CMAKE_SHARED_LINKER_FLAGS_INIT "" CACHE STRING "" FORCE)
unset(CMAKE_SYSROOT CACHE)
unset(CMAKE_SYSROOT_COMPILE CACHE)
unset(CMAKE_SYSROOT_LINK CACHE)
unset(CMAKE_C_COMPILER_EXTERNAL_TOOLCHAIN CACHE)
unset(CMAKE_C_COMPILER_TARGET CACHE)
unset(CMAKE_C_FLAGS CACHE)
unset(CMAKE_C_FLAGS_DEBUG CACHE)
unset(CMAKE_C_FLAGS_RELEASE CACHE)
set(CMAKE_POSITION_INDEPENDENT_CODE OFF)
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
set(MSVC 1)
set(CMAKE_MSVC 1)
set(CMAKE_C_COMPILER_FORCED TRUE)
set(CMAKE_CXX_COMPILER_FORCED TRUE)
set(CMAKE_C_COMPILER_ID Clang)
set(CMAKE_CXX_COMPILER_ID Clang)
set(CMAKE_C_COMPILER_FRONTEND_VARIANT MSVC)
set(CMAKE_CXX_COMPILER_FRONTEND_VARIANT MSVC)
