diff --git a/deps/CMakeLists.txt b/deps/CMakeLists.txt index 0e08be44ac..13f25fa112 100644 --- a/deps/CMakeLists.txt +++ b/deps/CMakeLists.txt @@ -3,6 +3,10 @@ if(${BUILD_TEST}) endif(${BUILD_TEST}) add_subdirectory(cJson) +target_include_directories( + cJSON + PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/cJson +) add_subdirectory(lz4/build/cmake) add_subdirectory(zlib) target_include_directories( diff --git a/source/server/dnode/CMakeLists.txt b/source/server/dnode/CMakeLists.txt index dbb4bd7c99..d93873282e 100644 --- a/source/server/dnode/CMakeLists.txt +++ b/source/server/dnode/CMakeLists.txt @@ -3,7 +3,7 @@ add_library(dnode ${DNODE_SRC}) target_link_libraries( dnode PUBLIC os - PUBLIC cJson + PUBLIC cJSON ) target_include_directories( dnode