1set(CMAKE_SYSTEM_NAME Windows)
2set(CMAKE_SYSTEM_PROCESSOR x86_64)
3
4set(THREADX_ARCH "win32")
5set(THREADX_TOOLCHAIN "vs_2019")
6
7set(WIN32_FLAGS "")
8
9set(CMAKE_C_FLAGS   "${WIN32_FLAGS} " CACHE INTERNAL "c compiler flags")
10set(CMAKE_CXX_FLAGS "${WIN32_FLAGS} -fno-rtti -fno-exceptions" CACHE INTERNAL "cxx compiler flags")
11set(CMAKE_ASM_FLAGS "${WIN32_FLAGS} -x assembler-with-cpp" CACHE INTERNAL "asm compiler flags")
12set(CMAKE_EXE_LINKER_FLAGS "${WIN32_FLAGS} ${LD_FLAGS}" CACHE INTERNAL "exe link flags")
13
14# this makes the test compiles use static library option so that we don't need to pre-set linker flags and scripts
15set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
16