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.

tinyxml2.cmake 801 B

123456789101112131415161718192021222324
  1. set(tinyxml2_CXXFLAGS "-fstack-protector -D_FORTIFY_SOURCE=2 -O2 -Wno-unused-result")
  2. set(tinyxml2_CFLAGS "-fstack-protector -D_FORTIFY_SOURCE=2 -O2")
  3. if(ENABLE_GITEE)
  4. set(REQ_URL "https://gitee.com/mirrors/tinyxml2/repository/archive/8.0.0.tar.gz")
  5. set(MD5 "6a70cea637d0b17179e8bfd77860f811")
  6. else()
  7. set(REQ_URL "https://github.com/leethomason/tinyxml2/archive/8.0.0.tar.gz")
  8. set(MD5 "5dc535c8b34ee621fe2128f072d275b5")
  9. endif()
  10. if(NOT WIN32 AND NOT APPLE)
  11. set(tinyxml2_LDFLAGS "-Wl,-z,relro,-z,now,-z,noexecstack")
  12. endif()
  13. mindspore_add_pkg(tinyxml2
  14. VER 8.0.0
  15. LIBS tinyxml2
  16. URL ${REQ_URL}
  17. CMAKE_OPTION -DCMAKE_BUILD_TYPE=Release
  18. MD5 ${MD5})
  19. include_directories(${tinyxml2_INC})
  20. add_library(mindspore::tinyxml2 ALIAS tinyxml2::tinyxml2)