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.

pybind11.cmake 537 B

123456789101112
  1. set(pybind11_CXXFLAGS "-D_FORTIFY_SOURCE=2 -O2")
  2. set(pybind11_CFLAGS "-D_FORTIFY_SOURCE=2 -O2")
  3. mindspore_add_pkg(pybind11
  4. VER 2.4.3
  5. URL https://github.com/pybind/pybind11/archive/v2.4.3.tar.gz
  6. MD5 62254c40f89925bb894be421fe4cdef2
  7. CMAKE_OPTION -DPYBIND11_TEST=OFF -DPYBIND11_LTO_CXX_FLAGS=FALSE
  8. )
  9. include_directories(${pybind11_INC})
  10. find_package(pybind11 REQUIRED)
  11. set_property(TARGET pybind11::module PROPERTY IMPORTED_GLOBAL TRUE)
  12. add_library(mindspore::pybind11_module ALIAS pybind11::module)

MindSpore is a new open source deep learning training/inference framework that could be used for mobile, edge and cloud scenarios.

Contributors (1)