From 1ff3135d2089d9eb1933e590a700c070445f80de Mon Sep 17 00:00:00 2001 From: Shengliang Guan Date: Thu, 30 Sep 2021 10:22:59 +0800 Subject: [PATCH] [TD-10430] minor changes --- deps/CMakeLists.txt | 4 ++++ source/server/dnode/CMakeLists.txt | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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