Create a branch for console restructuration work.
[reactos.git] / toolchain-msvc.cmake
1
2 if(NOT ARCH)
3 set(ARCH i386)
4 endif()
5
6 # the name of the target operating system
7 set(CMAKE_SYSTEM_NAME Windows)
8 set(CMAKE_SYSTEM_PROCESSOR i686)
9
10 # which compilers to use for C and C++
11 set(CMAKE_C_COMPILER cl)
12 set(CMAKE_CXX_COMPILER cl)
13 set(CMAKE_MC_COMPILER mc)
14 set(CMAKE_RC_COMPILER rc)
15 if(ARCH STREQUAL "amd64")
16 set(CMAKE_ASM_COMPILER ml64)
17 else()
18 set(CMAKE_ASM_COMPILER ml)
19 endif()
20 set(CMAKE_ASM_COMPILER_ID "VISUAL")
21
22 set(CMAKE_C_STANDARD_LIBRARIES "" CACHE INTERNAL "")
23
24 if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86")
25 add_definitions(-D__i386__)
26 endif()