aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-11-18 04:20:10 -0800
committerChris Robinson <[email protected]>2020-11-18 04:20:10 -0800
commitee9f0fe3063c61584e7a34d7b3ddc73d8464a29c (patch)
tree2800be19f34299810ec741ed99119368a0b2b86e
parent645d354ffa214cf366521e7f601b401d8f2c5879 (diff)
Recognize ARM64 as a VS platform
-rw-r--r--cmake/FindWindowsSDK.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/FindWindowsSDK.cmake b/cmake/FindWindowsSDK.cmake
index cbb0ee4a..15f9a231 100644
--- a/cmake/FindWindowsSDK.cmake
+++ b/cmake/FindWindowsSDK.cmake
@@ -476,9 +476,11 @@ find_package_handle_standard_args(WindowsSDK
if(WINDOWSSDK_FOUND)
# 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")
# 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
else()
set(_winsdk_archbare /arm) # what the architecture used to be called in oldest SDKs