From 65934754d10d266458cbb2337c02a3f6525ab0df Mon Sep 17 00:00:00 2001 From: Jeffrey Hsu Date: Sun, 8 Sep 2024 21:34:18 +0800 Subject: [PATCH] use static library instead of shared library --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5c56334..c6f5081 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,4 +51,4 @@ FetchContent_MakeAvailable(cJSON curl) add_executable(main main.c) target_include_directories(main PUBLIC ${cJSON_SOURCE_DIR}) -target_link_libraries(main cjson libcurl) \ No newline at end of file +target_link_libraries(main cjson-static libcurl_static) \ No newline at end of file