From a9363e8a7a8dee08d34061f561d8b09cbd961c39 Mon Sep 17 00:00:00 2001 From: LeSnow Ye Date: Sat, 20 Dec 2025 21:10:52 +0800 Subject: [PATCH 1/2] NOMINMAX on WIN32 instead of just MSVC Same as https://github.com/google/dawn/blob/0979968b84312b7c52521739ef93eb9812f0f3ed/CMakeLists.txt#L449 --- src/tint/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tint/CMakeLists.txt b/src/tint/CMakeLists.txt index 467d668b5a..af4d241e55 100644 --- a/src/tint/CMakeLists.txt +++ b/src/tint/CMakeLists.txt @@ -197,7 +197,9 @@ function(tint_default_compile_options TARGET) ) endif() endif() - + endif() + + if (WIN32) target_compile_definitions(${TARGET} INTERFACE "NOMINMAX") endif() From 4b88a2986ef993fa4c39e077407212ff6cfa5b37 Mon Sep 17 00:00:00 2001 From: LeSnow Ye Date: Wed, 24 Dec 2025 20:52:09 +0800 Subject: [PATCH 2/2] Remove white spaces --- src/tint/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tint/CMakeLists.txt b/src/tint/CMakeLists.txt index af4d241e55..446c0d8b29 100644 --- a/src/tint/CMakeLists.txt +++ b/src/tint/CMakeLists.txt @@ -198,7 +198,7 @@ function(tint_default_compile_options TARGET) endif() endif() endif() - + if (WIN32) target_compile_definitions(${TARGET} INTERFACE "NOMINMAX") endif()