[NTFS]
[reactos.git] / reactos / 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
13 if(ARCH STREQUAL "arm")
14 include(CMakeForceCompiler)
15 CMAKE_FORCE_CXX_COMPILER(cl MSVC)
16 else()
17 set(CMAKE_CXX_COMPILER cl)
18 endif()
19
20 set(CMAKE_MC_COMPILER mc)
21 set(CMAKE_RC_COMPILER rc)
22 if(ARCH STREQUAL "amd64")
23 set(CMAKE_ASM_COMPILER ml64)
24 elseif(ARCH STREQUAL "arm")
25 set(CMAKE_ASM_COMPILER armasm)
26 else()
27 set(CMAKE_ASM_COMPILER ml)
28 endif()
29 set(CMAKE_ASM_COMPILER_ID "VISUAL")
30
31 set(CMAKE_C_STANDARD_LIBRARIES "" CACHE INTERNAL "")
32
33 if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86")
34 add_definitions(-D__i386__)
35 endif()