From 509c746852c5f05fa8080753436c1ac862ebc585 Mon Sep 17 00:00:00 2001 From: Maarten Ditzel Date: Thu, 28 May 2015 09:19:23 +0200 Subject: [PATCH] Also setting FD_SETSIZE to 1024 when using mingw. --- CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fec315dd..1d720c53 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -264,12 +264,15 @@ set(LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/lib) #----------------------------------------------------------------------------- # platform specifics +if(MSVC OR MINGW) + # NB: May require tweaking for highly connected applications. + add_definitions(-DFD_SETSIZE=1024) +endif() + if(MSVC) add_definitions( -DWIN32 -DDLL_EXPORT - # NB: May require tweaking for highly connected applications. - -DFD_SETSIZE=1024 -D_CRT_SECURE_NO_WARNINGS) # Parallel make.