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.

libtiff.cmake 1.2 kB

1234567891011121314151617181920212223
  1. if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
  2. set(tiff_CXXFLAGS "-fstack-protector-all -Wno-uninitialized -Wno-unused-parameter -Wno-unused-result \
  3. -Wno-unused-but-set-variable -fPIC -D_FORTIFY_SOURCE=2 -O2")
  4. set(tiff_CFLAGS "-fstack-protector-all -Wno-uninitialized -Wno-unused-parameter -Wno-unused-result \
  5. -Wno-unused-but-set-variable -fPIC -D_FORTIFY_SOURCE=2 -O2")
  6. else()
  7. set(tiff_CXXFLAGS "-fstack-protector-all -Wno-maybe-uninitialized -Wno-unused-parameter -Wno-unused-result \
  8. -Wno-unused-but-set-variable -fPIC -D_FORTIFY_SOURCE=2 -O2")
  9. set(tiff_CFLAGS "-fstack-protector-all -Wno-maybe-uninitialized -Wno-unused-parameter -Wno-unused-result \
  10. -Wno-unused-but-set-variable -fPIC -D_FORTIFY_SOURCE=2 -O2")
  11. endif()
  12. set(tiff_LDFLAGS "-Wl,-z,relro,-z,now,-z,noexecstack")
  13. mindspore_add_pkg(tiff
  14. VER 4.1.0
  15. LIBS tiff
  16. URL https://gitlab.com/libtiff/libtiff/-/archive/v4.1.0/libtiff-v4.1.0.tar.gz
  17. MD5 21de8d35c1b21ac82663fa9f56d3350d
  18. CMAKE_OPTION -DCMAKE_BUILD_TYPE=Release -Djbig=OFF -Dlzma=OFF -Djpeg12=OFF -Dzstd=OFF -Dpixarlog=OFF
  19. -Dold-jpeg=OFF -Dwebp=OFF -DBUILD_SHARED_LIBS=OFF)
  20. message("tiff include = ${tiff_INC}")
  21. message("tiff lib = ${tiff_LIB}")