Browse Source

Fix Constants.hpp inclusion of version.h

Grant Limberg 6 years ago
parent
commit
206c85222c
2 changed files with 3 additions and 2 deletions
  1. 1 0
      node/CMakeLists.txt
  2. 2 2
      node/Constants.hpp

+ 1 - 0
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(

+ 2 - 2
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