From 18071e038e33804ca0c7502774f34a2c36bca773 Mon Sep 17 00:00:00 2001 From: ZeroTier Date: Fri, 16 Aug 2019 09:44:31 -0700 Subject: [PATCH] Fix MacEthernetTapAgent & Cmake integration --- osdep/CMakeLists.txt | 1 + osdep/MacEthernetTapAgent.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/osdep/CMakeLists.txt b/osdep/CMakeLists.txt index f9e5d6d4..b16d94d8 100644 --- a/osdep/CMakeLists.txt +++ b/osdep/CMakeLists.txt @@ -54,6 +54,7 @@ target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_11) if(APPLE) add_executable(MacEthernetTapAgent MacEthernetTapAgent.c MacEthernetTapAgent.h) + target_include_directories(MacEthernetTapAgent PRIVATE ${CMAKE_BINARY_DIR}) endif(APPLE) diff --git a/osdep/MacEthernetTapAgent.c b/osdep/MacEthernetTapAgent.c index b5ad1f62..65f18f33 100644 --- a/osdep/MacEthernetTapAgent.c +++ b/osdep/MacEthernetTapAgent.c @@ -92,7 +92,7 @@ #include #include -#include "../version.h" +#include "version.h" #include "MacEthernetTapAgent.h" #ifndef SIOCAUTOCONF_START