forked from mindspore-Ecosystem/mindspore
22 lines
705 B
CMake
22 lines
705 B
CMake
set(cppjieba_CXXFLAGS "-D_FORTIFY_SOURCE=2 -O2")
|
|
set(cppjieba_CFLAGS "-D_FORTIFY_SOURCE=2 -O2")
|
|
|
|
if(ENABLE_GITEE)
|
|
set(REQ_URL "https://gitee.com/mirrors/cppjieba/repository/archive/v5.0.3.tar.gz")
|
|
set(MD5 "06fcc22b4db6c332dc1b0bd353bdf6f2")
|
|
else()
|
|
set(REQ_URL "https://github.com/yanyiwu/cppjieba/archive/v5.0.3.tar.gz")
|
|
set(MD5 "b8b3f7a73032c9ce9daafa4f67196c8c")
|
|
endif()
|
|
|
|
mindspore_add_pkg(cppjieba
|
|
VER 5.0.3
|
|
HEAD_ONLY ./
|
|
URL ${REQ_URL}
|
|
MD5 ${MD5}
|
|
PATCHES ${TOP_DIR}/third_party/patch/cppjieba/cppjieba.patch001)
|
|
include_directories(${cppjieba_INC}include)
|
|
include_directories(${cppjieba_INC}deps)
|
|
add_library(mindspore::cppjieba ALIAS cppjieba)
|
|
|