Skip to content

Commit e81be3f

Browse files
committed
add equivalent of x64-windows-static and emit CMAKE_SYSTEM_PROCESSOR
1 parent b07a7e2 commit e81be3f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ if(WIN32)
2929
set(VCPKG_LIBRARY_LINKAGE static)
3030
# FIX: unsure if this matters but doesn't break things on arm64
3131
# set(VCPKG_TARGET_TRIPLET x64-windows-static)
32+
# FIX: this should be equivalent to x64-windows-static - why does it work on arm64?
33+
message("CMAKE_SYSTEM_PROCESSOR = ${CMAKE_SYSTEM_PROCESSOR}")
34+
set(VCPKG_TARGET_ARCHITECTURE x64)
35+
set(VCPKG_CRT_LINKAGE static)
36+
set(VCPKG_LIBRARY_LINKAGE static)
3237
set(CMAKE_FIND_LIBRARY_SUFFIXES ".lib")
3338

3439
# # Enable Hot Reload for MSVC compilers if supported.

0 commit comments

Comments
 (0)