Using WIN32_LEAN_AND_MEAN to avoid winsock error with boost asio.
This commit is contained in:
parent
4c8da316ea
commit
f4c138413c
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue