From 206c85222c04fdc03ab309276b47fcec860e97b7 Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Fri, 16 Aug 2019 09:52:13 -0700 Subject: [PATCH] Fix Constants.hpp inclusion of version.h --- node/CMakeLists.txt | 1 + node/Constants.hpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/node/CMakeLists.txt b/node/CMakeLists.txt index 74fdbb2ab..9a78b4745 100644 --- a/node/CMakeLists.txt +++ b/node/CMakeLists.txt @@ -75,6 +75,7 @@ set(core_src ) add_library(${PROJECT_NAME} STATIC ${core_src} ${core_headers}) target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_11) +target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_BINARY_DIR}) if(UNIX) set_source_files_properties( diff --git a/node/Constants.hpp b/node/Constants.hpp index 125c97f2f..97dd8f4ae 100644 --- a/node/Constants.hpp +++ b/node/Constants.hpp @@ -29,8 +29,8 @@ #include "../include/ZeroTierOne.h" -#if __has_include("../version.h") -#include "../version.h" +#if __has_include("version.h") +#include "version.h" #else /* dummy values for use inside IDEs, etc. */ #define ZEROTIER_ONE_VERSION_MAJOR 255 #define ZEROTIER_ONE_VERSION_MINOR 255