use static library instead of shared library

This commit is contained in:
Jeffrey Hsu 2024-09-08 21:34:18 +08:00
parent a9a442b5ac
commit 65934754d1

View File

@ -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)
target_link_libraries(main cjson-static libcurl_static)