mirror of
https://github.com/reactos/reactos.git
synced 2025-01-11 16:51:06 +00:00
13f105b14b
- Introduce MSVC toolchain support. Just use -DCMAKE_TOOLCHAIN_FILE=toolchain-msvc.cmake for the toolchain. - Sync setjmp.h from trunk. - Improve mingw targets (mingw_common, mingw_wmain, oldnames... etc) a bit to make them compile and link with msvc. - Dedicated to Timo ;) svn path=/branches/cmake-bringup/; revision=48809
18 lines
454 B
CMake
18 lines
454 B
CMake
|
|
if(NOT ARCH)
|
|
set(ARCH i386)
|
|
endif(NOT ARCH)
|
|
|
|
# the name of the target operating system
|
|
set(CMAKE_SYSTEM_NAME Windows)
|
|
set(CMAKE_SYSTEM_PROCESSOR i686)
|
|
|
|
# which compilers to use for C and C++
|
|
set(CMAKE_C_COMPILER cl)
|
|
set(CMAKE_CXX_COMPILER cl)
|
|
|
|
set(CMAKE_C_FLAGS_INIT "/DWIN32 /D_WINDOWS /W1 /Zm1000")
|
|
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|