Add WIN32_LEAN_AND_MEAN definition to solve some linking issues on windows
This commit is contained in:
parent
557d056add
commit
95625bfce5
@ -58,4 +58,9 @@ if(MSVC)
|
||||
set(CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO "/NODEFAULTLIB:MSVCRT")
|
||||
endif()
|
||||
|
||||
# Resolving Redefinition Errors Betwen ws2def.h and winsock.h:
|
||||
# - http://www.zachburlingame.com/2011/05/resolving-redefinition-errors-betwen-ws2def-h-and-winsock-h/
|
||||
# - https://stackoverflow.com/questions/11040133/what-does-defining-win32-lean-and-mean-exclude-exactly
|
||||
add_definitions(-DWIN32_LEAN_AND_MEAN)
|
||||
|
||||
endif()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user