[COMCTL32] Improve IP Address Controls (Tab and caret) (#3212)
[reactos.git] / toolchain-msvc.cmake
1
2 if(NOT ARCH)
3 set(ARCH i386)
4 endif()
5
6 # Default to Debug for the build type
7 if(NOT DEFINED CMAKE_BUILD_TYPE)
8 set(CMAKE_BUILD_TYPE "Debug" CACHE STRING
9 "Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.")
10 endif()
11
12 # the name of the target operating system
13 set(CMAKE_SYSTEM_NAME Windows)
14 set(CMAKE_SYSTEM_PROCESSOR i686)
15
16 if(USE_CLANG_CL)
17 set(CMAKE_C_COMPILER clang-cl)
18 set(CMAKE_CXX_COMPILER clang-cl)
19 # Clang now defaults to lld-link which we're not compatible with yet
20 set(CMAKE_LINKER link)
21 else()
22 set(CMAKE_C_COMPILER cl)
23 set(CMAKE_CXX_COMPILER cl)
24 endif()
25
26 set(CMAKE_MC_COMPILER mc)
27 set(CMAKE_RC_COMPILER rc)
28 if(ARCH STREQUAL "amd64")
29 set(CMAKE_ASM_COMPILER ml64)
30 elseif(ARCH STREQUAL "arm")
31 set(CMAKE_ASM_COMPILER armasm)
32 elseif(ARCH STREQUAL "arm64")
33 set(CMAKE_ASM_COMPILER armasm64)
34 else()
35 set(CMAKE_ASM_COMPILER ml)
36 endif()
37
38 set(CMAKE_C_STANDARD_LIBRARIES "" CACHE INTERNAL "")
39
40 set(CMAKE_USER_MAKE_RULES_OVERRIDE "${CMAKE_CURRENT_LIST_DIR}/overrides-msvc.cmake")