You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

libevent.cmake 733 B

12345678910111213
  1. set(libevent_CFLAGS "-fstack-protector-all -D_FORTIFY_SOURCE=2 -O2")
  2. set(libevent_LDFLAGS "-Wl,-z,now")
  3. mindspore_add_pkg(libevent
  4. VER 2.1.12
  5. LIBS event event_pthreads
  6. URL https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/libevent-2.1.12-stable.tar.gz
  7. MD5 b5333f021f880fe76490d8a799cd79f4
  8. CMAKE_OPTION -DCMAKE_BUILD_TYPE:STRING=Release -DBUILD_TESTING=OFF)
  9. include_directories(${libevent_INC}) # 将指定目录添加到编译器的头文件搜索路径之下,指定的目录被解释成当前源码路径的相对路径。
  10. add_library(mindspore_serving::event ALIAS libevent::event)
  11. add_library(mindspore_serving::event_pthreads ALIAS libevent::event_pthreads)

A lightweight and high-performance service module that helps MindSpore developers efficiently deploy online inference services in the production environment.