diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2022-09-12 08:45:30 +0200 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2022-09-12 08:45:30 +0200 |
commit | c051a960e6fe09e2425dc223018b87a453b2bb2a (patch) | |
tree | b27a54f6cc1695d63bae52c16eab2e1ed8003bf9 /src | |
parent | eadeb9f2a13577d6cd532b2a1bd306710136322a (diff) | |
download | OFQT-c051a960e6fe09e2425dc223018b87a453b2bb2a.tar.gz OFQT-c051a960e6fe09e2425dc223018b87a453b2bb2a.zip |
revert pack to custom json-c cmake package because security by age
thanks Debian and Ubuntu
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 0fdcce5..f3d8a13 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,6 +1,6 @@ -find_package(json-c REQUIRED) find_package(Libcurl REQUIRED) +find_package(JsonC REQUIRED) add_subdirectory(hash) add_subdirectory(vdf) add_subdirectory(threading) @@ -14,6 +14,7 @@ set(CFLAGS -Wmissing-declarations -Wmissing-include-dirs -Wno-unused-parameter -Wuninitialized ${LIBCURL_CFLAGS} + ${JSONC_CFLAGS} ) list(APPEND @@ -32,9 +33,10 @@ add_library(tvn STATIC ${CORE_SOURCES}) target_compile_options(tvn PUBLIC ${CFLAGS}) target_include_directories(tvn PUBLIC ${LIBCURL_INCLUDE_DIRS}) +target_include_directories(tvn PUBLIC ${JSONC_INCLUDE_DIRS}) target_include_directories(tvn PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) target_link_libraries(tvn LINK_PUBLIC ${LIBCURL_LIBRARIES}) -target_link_libraries(tvn LINK_PUBLIC json-c::json-c) +target_link_libraries(tvn LINK_PUBLIC ${JSONC_LIBRARIES}) target_link_libraries(tvn LINK_PUBLIC md5) target_link_libraries(tvn LINK_PUBLIC vdf) |