Fix building on MSVC 18 (2026)

This commit is contained in:
David Kindl 2025-12-01 14:20:52 +01:00 committed by cbnolok
parent c8001d81f6
commit ab2f8d29cb

View file

@ -13,7 +13,7 @@ function(toolchain_after_project)
if(NOT CMAKE_VS_PLATFORM_NAME)
set(CMAKE_VS_PLATFORM_NAME "${CMAKE_VS_PLATFORM_NAME_DEFAULT}")
endif()
if(${CMAKE_VS_PLATFORM_NAME} STREQUAL "Win32")
if("${CMAKE_VS_PLATFORM_NAME}" STREQUAL "Win32")
set(CMAKE_SYSTEM_PROCESSOR "x86" CACHE INTERNAL "" FORCE)
endif()
set(CMAKE_SYSTEM_PROCESSOR "${CMAKE_VS_PLATFORM_NAME}" CACHE INTERNAL "" FORCE)