Skip to content

Commit ab2f8d2

Browse files
mtwangocbnolok
authored andcommitted
Fix building on MSVC 18 (2026)
1 parent c8001d8 commit ab2f8d2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎cmake/toolchains/Windows-MSVC.cmake‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function(toolchain_after_project)
1313
if(NOT CMAKE_VS_PLATFORM_NAME)
1414
set(CMAKE_VS_PLATFORM_NAME "${CMAKE_VS_PLATFORM_NAME_DEFAULT}")
1515
endif()
16-
if(${CMAKE_VS_PLATFORM_NAME} STREQUAL "Win32")
16+
if("${CMAKE_VS_PLATFORM_NAME}" STREQUAL "Win32")
1717
set(CMAKE_SYSTEM_PROCESSOR "x86" CACHE INTERNAL "" FORCE)
1818
endif()
1919
set(CMAKE_SYSTEM_PROCESSOR "${CMAKE_VS_PLATFORM_NAME}" CACHE INTERNAL "" FORCE)

0 commit comments

Comments
 (0)