Windows: Guard VsDevCmd env var check to ARM64 only

This is a "quick fix" guard check to unbreak things - I'll put a proper checking mechanism in later that checks if it's undefined etc

Pull Request: https://projects.blender.org/blender/blender/pulls/134512
This commit is contained in:
Anthony Roberts
2025-02-13 17:42:49 +01:00
parent bf53ee96e5
commit ace957a124

View File

@@ -59,8 +59,10 @@ else()
endif()
set(WINDOWS_ARM64_MIN_VSCMD_VER 17.12.3)
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "ARM64" AND $ENV{VSCMD_VER} VERSION_LESS WINDOWS_ARM64_MIN_VSCMD_VER)
message(FATAL_ERROR "Windows ARM64 requires VS2022 version ${WINDOWS_ARM64_MIN_VSCMD_VER} or greater - please update your VS2022 install!")
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "ARM64")
if($ENV{VSCMD_VER} VERSION_LESS WINDOWS_ARM64_MIN_VSCMD_VER)
message(FATAL_ERROR "Windows ARM64 requires VS2022 version ${WINDOWS_ARM64_MIN_VSCMD_VER} or greater - please update your VS2022 install!")
endif()
endif()
if(WITH_BLENDER AND NOT WITH_PYTHON_MODULE)