[CMAKE]
[reactos.git] / reactos / 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
16 set(CMAKE_C_STANDARD_LIBRARIES "" CACHE INTERNAL "")
17
18 if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86")
19 add_definitions(-D__i386__)
20 endif()