build(windows): detect 64-bit using CMAKE_SIZEOF_VOID_P for Ninja compatibility

This commit is contained in:
Bruno Alexandre Rosa 2026-03-02 20:54:58 -03:00
parent 5c2d12bd15
commit be046ce784

View file

@ -312,7 +312,7 @@ if(UNIX)
endif()
elseif(WIN32)
set(CPACK_GENERATOR NSIS ${CPACK_GENERATOR})
if("${CMAKE_GENERATOR_PLATFORM}" MATCHES "(x64)")
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(TRICE_IS_64_BIT 1)
else()
set(TRICE_IS_64_BIT 0)