From 545889c990d9155635dfca73345be37f207b2d68 Mon Sep 17 00:00:00 2001 From: Aki Date: Thu, 30 Sep 2021 16:49:25 +0200 Subject: Fixed NetEx includes against win sdk --- NetEx/CMakeLists.txt | 4 +++- NetEx/NetAddr.h | 1 + NetEx/NetLayer.h | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) (limited to 'NetEx') diff --git a/NetEx/CMakeLists.txt b/NetEx/CMakeLists.txt index 553ab30..ccb0f01 100644 --- a/NetEx/CMakeLists.txt +++ b/NetEx/CMakeLists.txt @@ -17,9 +17,11 @@ add_library( NetServer.cpp NetSock.cpp ) +set(WINDOWSSDK_PATH "C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/um") target_include_directories( NetEx - PUBLIC . + PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} + PUBLIC ${WINDOWSSDK_PATH} # FIXME ) target_link_libraries( NetEx diff --git a/NetEx/NetAddr.h b/NetEx/NetAddr.h index 58e6b9c..32e01c9 100644 --- a/NetEx/NetAddr.h +++ b/NetEx/NetAddr.h @@ -41,6 +41,7 @@ #define NetAddr_h #include +#include // +-------------------------------------------------------------------+ diff --git a/NetEx/NetLayer.h b/NetEx/NetLayer.h index 66b9c9d..49c884e 100644 --- a/NetEx/NetLayer.h +++ b/NetEx/NetLayer.h @@ -40,6 +40,7 @@ #define NetLayer_h #include +#include #include "Text.h" // +-------------------------------------------------------------------+ -- cgit v1.1