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.

sqlite.cmake 686 B

123456789101112131415
  1. set(sqlite_USE_STATIC_LIBS ON)
  2. set(sqlite_CXXFLAGS)
  3. set(sqlite_CFLAGS "-fstack-protector-all -Wno-maybe-uninitialized -Wno-unused-parameter -fPIC -D_FORTIFY_SOURCE=2 -O2")
  4. set(sqlite_LDFLAGS "-Wl,-z,relro,-z,now,-z,noexecstack")
  5. mindspore_add_pkg(sqlite
  6. VER 3.31.1
  7. LIBS sqlite3
  8. URL https://github.com/sqlite/sqlite/archive/version-3.31.1.tar.gz
  9. MD5 5f4e7b4016c15f4fb5855615279819da
  10. PATCHES ${CMAKE_SOURCE_DIR}/third_party/patch/sqlite/sqlite.patch001
  11. CONFIGURE_COMMAND ./configure --enable-shared=no --disable-tcl --disable-editline --enable-json1)
  12. include_directories(${sqlite_INC})
  13. add_library(mindspore::sqlite ALIAS sqlite::sqlite3)