From 465d322c7a0a913512c5b1ce1011bccd4cec8136 Mon Sep 17 00:00:00 2001 From: Christian Rauch Date: Sun, 16 Feb 2025 14:10:04 +0100 Subject: [PATCH] compile with WIN32_LEAN_AND_MEAN on Windows --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 00248b88..4813a5c1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -64,6 +64,7 @@ if(CMAKE_C_COMPILER_ID MATCHES "Clang" AND CMAKE_C_SIMULATE_ID MATCHES "MSVC") add_definitions(-D _CRT_NONSTDC_NO_DEPRECATE) # ignore "'fopen' is deprecated" and "'strncpy' is deprecated" warnings add_definitions(-D _CRT_SECURE_NO_WARNINGS) + add_compile_definitions(WIN32_LEAN_AND_MEAN) endif() aux_source_directory(common COMMON_SRC)