From 279374caeb6c47ecf3389e43832548b78d91c127 Mon Sep 17 00:00:00 2001 From: Shengliang Guan Date: Thu, 30 Sep 2021 11:39:16 +0800 Subject: [PATCH 1/2] minor changes for cjson --- deps/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/deps/CMakeLists.txt b/deps/CMakeLists.txt index 0e08be44ac..f251ae34ed 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( From f2b9c64534062945437e5b883c194720be3135ca Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Thu, 30 Sep 2021 11:57:35 +0800 Subject: [PATCH 2/2] fix cmake error --- deps/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deps/CMakeLists.txt b/deps/CMakeLists.txt index f251ae34ed..137ad31d82 100644 --- a/deps/CMakeLists.txt +++ b/deps/CMakeLists.txt @@ -5,7 +5,8 @@ endif(${BUILD_TEST}) add_subdirectory(cJson) target_include_directories( cjson - PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/cJson + # see https://stackoverflow.com/questions/25676277/cmake-target-include-directories-prints-an-error-when-i-try-to-add-the-source + PUBLIC $ ) add_subdirectory(lz4/build/cmake) add_subdirectory(zlib)