From afc58b6559ab61987198e69c8c980bc1a320293e Mon Sep 17 00:00:00 2001 From: cocomeow Date: Thu, 2 Dec 2021 08:54:09 +0800 Subject: [PATCH] add WIN32_LEAN_AND_MEAN for WIN32 --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c8b782a..4c187ba 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -184,6 +184,7 @@ target_link_libraries(across PRIVATE ) if(WIN32) + target_compile_definitions(across PUBLIC -DWIN32_LEAN_AND_MEAN) set_target_properties(across PROPERTIES WIN32_EXECUTABLE TRUE) if (MSVC)