|
|
|
@@ -1,10 +1,19 @@ |
|
|
|
set(libevent_CFLAGS "-fstack-protector-all -D_FORTIFY_SOURCE=2 -O2") |
|
|
|
set(libevent_LDFLAGS "-Wl,-z,now") |
|
|
|
|
|
|
|
if (ENABLE_GITEE) |
|
|
|
set(REQ_URL "https://gitee.com/mirrors/libevent/repository/archive/release-2.1.12-stable.tar.gz") |
|
|
|
set(MD5 "c9036513dd9e5b4fa1c81ade23b7ead2") |
|
|
|
else() |
|
|
|
set(REQ_URL "https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/libevent-2.1.12-stable.tar.gz") |
|
|
|
set(MD5 "b5333f021f880fe76490d8a799cd79f4") |
|
|
|
endif () |
|
|
|
|
|
|
|
mindspore_add_pkg(libevent |
|
|
|
VER 2.1.12 |
|
|
|
LIBS event event_pthreads |
|
|
|
URL https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/libevent-2.1.12-stable.tar.gz |
|
|
|
MD5 b5333f021f880fe76490d8a799cd79f4 |
|
|
|
URL ${REQ_URL} |
|
|
|
MD5 ${MD5} |
|
|
|
CMAKE_OPTION -DCMAKE_BUILD_TYPE:STRING=Release -DBUILD_TESTING=OFF) |
|
|
|
|
|
|
|
include_directories(${libevent_INC}) |
|
|
|
|