diff --git a/deps/CMakeLists.txt b/deps/CMakeLists.txt index 0e08be44ac0e18a5c32864515b12b4f531d80d82..13f25fa1122a20d8280b19160cb74a1644c0544f 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 dbb4bd7c9958b2f8848c29210ab156a6c29effe8..d93873282e2de53363bee16bfc097f68f4866d7f 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