* Sync up to trunk r55544.
[reactos.git] / toolchain-msvc.cmake
1
2 # the name of the target operating system
3 set(CMAKE_SYSTEM_NAME Windows)
4 set(CMAKE_SYSTEM_PROCESSOR i686)
5
6 # which compilers to use for C and C++
7 set(CMAKE_C_COMPILER cl)
8 set(CMAKE_CXX_COMPILER cl)
9 set(CMAKE_RC_COMPILER rc)
10 if(${ARCH} MATCHES amd64)
11 set(CMAKE_ASM_COMPILER ml64)
12 else()
13 set(CMAKE_ASM_COMPILER ml)
14 endif()
15 set(CMAKE_ASM_COMPILER_ID "VISUAL")
16
17 set(CMAKE_C_STANDARD_LIBRARIES "" CACHE INTERNAL "")
18
19 if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86")
20 add_definitions(-D__i386__)
21 endif()