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)