(cmake) use FetchContent cmake module to retrieve jsoncpp third party dependency
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user