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