summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2019-10-06 15:05:12 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2019-11-23 20:06:15 +0100
commit084396059b97e6c646cfe3e1cf7816fa47dd6cfb (patch)
tree26e5144059b3cdf7f64c274d51e10f8552228384
parentFix linting issues (diff)
downloadnheko-084396059b97e6c646cfe3e1cf7816fa47dd6cfb.tar.xz
Use win lean and mean to fix WinSock include issue
-rw-r--r--CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt

index 1cf34c32..f659d91c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -454,6 +454,7 @@ if(APPLE) target_link_libraries (nheko ${NHEKO_LIBS} Qt5::MacExtras) elseif(WIN32) add_executable (nheko ${OS_BUNDLE} ${ICON_FILE} ${NHEKO_DEPS}) + target_compile_definitions(nheko PRIVATE WIN32_LEAN_AND_MEAN) target_link_libraries (nheko ${NTDLIB} ${NHEKO_LIBS} Qt5::WinMain) else() add_executable (nheko ${OS_BUNDLE} ${NHEKO_DEPS})