Recognize ARM64 as a VS platform
This commit is contained in:
Miku AuahDark
2020-12-03 13:01:33 +08:00
parent 86071a8a44
commit 9932cae9c1
+3 -1
View File
@@ -470,9 +470,11 @@ find_package_handle_standard_args(WindowsSDK
if(WINDOWSSDK_FOUND) if(WINDOWSSDK_FOUND)
# Internal: Architecture-appropriate library directory names. # Internal: Architecture-appropriate library directory names.
if("${CMAKE_VS_PLATFORM_NAME}" STREQUAL "ARM") if("${CMAKE_VS_PLATFORM_NAME}" STREQUAL "ARM" OR "${CMAKE_VS_PLATFORM_NAME}" STREQUAL "ARM64")
if(CMAKE_SIZEOF_VOID_P MATCHES "8") if(CMAKE_SIZEOF_VOID_P MATCHES "8")
# Only supported in Win10 SDK and up. # Only supported in Win10 SDK and up.
set(_winsdk_archbare ) # what the architecture used to be called in oldest SDKs
set(_winsdk_arch arm64) # what the architecture used to be called
set(_winsdk_arch8 arm64) # what the WDK for Win8+ calls this architecture set(_winsdk_arch8 arm64) # what the WDK for Win8+ calls this architecture
else() else()
set(_winsdk_archbare /arm) # what the architecture used to be called in oldest SDKs set(_winsdk_archbare /arm) # what the architecture used to be called in oldest SDKs