We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 863d732 commit d0daae2Copy full SHA for d0daae2
cmake/godotcpp.cmake
@@ -64,6 +64,20 @@ function(godot_arch_name OUTVAR)
64
endif()
65
66
67
+ # Special case for MSVC cross-compilation
68
+ if(DEFINED CMAKE_VS_PLATFORM_NAME)
69
+ if(CMAKE_VS_PLATFORM_NAME STREQUAL "Win32")
70
+ set(${OUTVAR} "x86_32" PARENT_SCOPE)
71
+ return()
72
+ elseif(CMAKE_VS_PLATFORM_NAME STREQUAL "x64")
73
+ set(${OUTVAR} "x86_64" PARENT_SCOPE)
74
75
+ elseif(CMAKE_VS_PLATFORM_NAME STREQUAL "ARM64")
76
+ set(${OUTVAR} "arm64" PARENT_SCOPE)
77
78
+ endif()
79
80
+
81
# Direct match early out.
82
string(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}" ARCH)
83
if(ARCH IN_LIST ARCH_LIST)
0 commit comments