summarylogtreecommitdiffstats
path: root/fix-build.patch
blob: 7cd66130d4c993c03046c3e7f353eb9066a924fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/third_party/cJSON/CMakeLists.txt b/third_party/cJSON/CMakeLists.txt
index 8973dee1..e7072707 100644
--- a/third_party/cJSON/CMakeLists.txt
+++ b/third_party/cJSON/CMakeLists.txt
@@ -30,14 +30,4 @@ set(CJSON_BUILD_SHARED_LIBS OFF CACHE BOOL "disable shared libs" FORCE)
 set(BUILD_SHARED_LIBS OFF CACHE BOOL "disable shared libs" FORCE)
 set(ENABLE_CUSTOM_COMPILER_FLAGS OFF CACHE BOOL "disable custom compiler option" FORCE)
 
-
-add_subdirectory(repo)
-
-target_include_directories(cjson
-    PUBLIC
-    
-    $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/repo>
-    $<INSTALL_INTERFACE:repo>
-)
-
-
+find_package(cJSON REQUIRED)