summaryrefslogtreecommitdiff
path: root/cmake/win64.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/win64.cmake')
-rw-r--r--cmake/win64.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmake/win64.cmake b/cmake/win64.cmake
new file mode 100644
index 00000000..5ba9988c
--- /dev/null
+++ b/cmake/win64.cmake
@@ -0,0 +1,9 @@
+set(CMAKE_SYSTEM_NAME Windows)
+set(CMAKE_SYSTEM_PROCESSOR AMD64)
+
+set(THREADX_ARCH "win64")
+set(THREADX_TOOLCHAIN "vs_2022")
+
+# This makes the test compiles use the static library option so that the
+# compiler environment can be discovered from the active MSVC shell.
+set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)