forked from mindspore-Ecosystem/mindspore
update JSON for Model C++ to 3.7.3
This commit is contained in:
parent
76bec49d75
commit
7523631f99
|
@ -3,24 +3,24 @@ if(MSVC)
|
|||
set(flatbuffers_CFLAGS "${CMAKE_CXX_FLAGS}")
|
||||
set(flatbuffers_LDFLAGS "${CMAKE_SHARED_LINKER_FLAGS}")
|
||||
else()
|
||||
set(nlohmann_json_CXXFLAGS "-D_FORTIFY_SOURCE=2 -O2")
|
||||
set(nlohmann_json_CFLAGS "-D_FORTIFY_SOURCE=2 -O2")
|
||||
set(nlohmann_json373_CXXFLAGS "-D_FORTIFY_SOURCE=2 -O2")
|
||||
set(nlohmann_json373_CFLAGS "-D_FORTIFY_SOURCE=2 -O2")
|
||||
endif()
|
||||
|
||||
if(ENABLE_GITEE)
|
||||
set(REQ_URL "https://gitee.com/mirrors/JSON-for-Modern-CPP/repository/archive/v3.6.1.zip")
|
||||
set(MD5 "36ea0d9a709c6667b2798a62f6b197ae")
|
||||
set(REQ_URL "https://gitee.com/mirrors/JSON-for-Modern-CPP/repository/archive/v3.7.3.zip")
|
||||
set(MD5 "b758acca4f3e133bacf919e31ca302e3")
|
||||
set(INCLUDE "./include")
|
||||
else()
|
||||
set(REQ_URL "https://github.com/nlohmann/json/releases/download/v3.6.1/include.zip")
|
||||
set(MD5 "0dc903888211db3a0f170304cd9f3a89")
|
||||
set(INCLUDE "./")
|
||||
set(REQ_URL "https://github.com/nlohmann/json/releases/download/v3.7.3/include.zip")
|
||||
set(MD5 "fb96f95cdf609143e998db401ca4f324")
|
||||
set(INCLUDE "./include")
|
||||
endif()
|
||||
|
||||
mindspore_add_pkg(nlohmann_json
|
||||
VER 3.6.1
|
||||
mindspore_add_pkg(nlohmann_json373
|
||||
VER 3.7.3
|
||||
HEAD_ONLY ${INCLUDE}
|
||||
URL ${REQ_URL}
|
||||
MD5 ${MD5})
|
||||
include_directories(${nlohmann_json_INC})
|
||||
add_library(mindspore::json ALIAS nlohmann_json)
|
||||
include_directories(${nlohmann_json373_INC})
|
||||
add_library(mindspore::json ALIAS nlohmann_json373)
|
||||
|
|
Loading…
Reference in New Issue