Skip to content

Commit

Permalink
Don't use WIN32 when cross-compiling with a toolchain file
Browse files Browse the repository at this point in the history
  • Loading branch information
tronical committed Aug 23, 2024
1 parent ad7d4de commit 1ba68a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stm32h735g-dk/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function(try_download_prebuilt_slint_binary slint_version rust_target)
set(github_release "${slint_version}")
endif()

if(WIN32)
if(CMAKE_HOST_SYSTEM_NAME MATCHES "Windows")
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(package_system_name win64)
else()
Expand Down
2 changes: 1 addition & 1 deletion stm32h747i-disco/CM7/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function(try_download_prebuilt_slint_binary slint_version rust_target)
set(github_release "${slint_version}")
endif()

if(WIN32)
if(CMAKE_HOST_SYSTEM_NAME MATCHES "Windows")
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(package_system_name win64)
else()
Expand Down

0 comments on commit 1ba68a9

Please sign in to comment.