(cmake) use FetchContent cmake module to retrieve jsoncpp third party dependency

This commit is contained in:
Benjamin Sergeant
2020-09-26 14:11:40 -07:00
parent 93167e3917
commit 6077f86af8
11 changed files with 18 additions and 8019 deletions

View File

@ -256,7 +256,11 @@ if (USE_WS OR USE_TEST)
GIT_REPOSITORY "https://github.com/gabime/spdlog"
GIT_TAG "v1.8.0")
FetchContent_MakeAvailable(spdlog)
FetchContent_Declare(jsoncpp
GIT_REPOSITORY "https://github.com/open-source-parsers/jsoncpp"
GIT_TAG "1.9.4")
FetchContent_MakeAvailable(spdlog jsoncpp)
if (USE_WS)
add_subdirectory(ws)