Using WIN32_LEAN_AND_MEAN to avoid winsock error with boost asio.

This commit is contained in:
clemahieu 2015-02-12 21:22:07 -06:00
commit f4c138413c

View file

@ -2,7 +2,7 @@ cmake_minimum_required (VERSION 2.8.11)
project (rai)
if (WIN32)
set (PLATFORM_COMPILE_FLAGS "-D_WIN32_WINNT=0x0501 -DWINVER=0x0501")
set (PLATFORM_COMPILE_FLAGS "-D_WIN32_WINNT=0x0501 -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN")
else (WIN32)
set (PLATFORM_COMPILE_FLAGS -fPIC)
endif (WIN32)