From 7c1d2a64f4afe6b02a93c3342a91fc932015742e Mon Sep 17 00:00:00 2001 From: Nadia Holmquist Pedersen Date: Mon, 11 Nov 2024 14:18:05 +0100 Subject: [PATCH] Set WIN32_LEAN_AND_MEAN, gets rid of the winsock2 warnings and probably speeds up compilation a tiny bit oh and NOMINMAX too for good measure while we're at it --- src/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6df0e82e..a4cb6f1e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -180,6 +180,7 @@ endif() if (WIN32) target_link_libraries(core PRIVATE ole32 comctl32 wsock32 ws2_32) + target_compile_definitions(core PUBLIC WIN32_LEAN_AND_MEAN NOMINMAX) elseif(NOT APPLE AND NOT HAIKU) check_library_exists(rt shm_open "" NEED_LIBRT) if (NEED_LIBRT)