dongxiao1198 commented on code in PR #101:
URL: https://github.com/apache/iceberg-cpp/pull/101#discussion_r2095292516
##########
cmake_modules/IcebergThirdpartyToolchain.cmake:
##########
@@ -285,3 +287,20 @@ function(resolve_nlohmann_json_dependency)
endfunction()
resolve_nlohmann_json_dependency()
+
+# ----------------------------------------------------------------------
+# zlib
+
+function(resolve_zlib_dependency)
+ # use system zlib, zlib is required by arrow and avro
+ find_package(ZLIB REQUIRED)
+ if(ZLIB_FOUND)
+ list(APPEND ICEBERG_SYSTEM_DEPENDENCIES ZLIB)
+ message(STATUS "ZLIB_FOUND")
+ message(STATUS "ZLIB_LIBRARIES: ${ZLIB_LIBRARIES}")
+ message(STATUS "ZLIB_INCLUDE_DIR: ${ZLIB_INCLUDE_DIR}")
+ endif()
+
+endfunction()
+
+resolve_zlib_dependency()
Review Comment:
I movet them back to the end of file, that will be better.
##########
cmake_modules/IcebergThirdpartyToolchain.cmake:
##########
@@ -285,3 +287,20 @@ function(resolve_nlohmann_json_dependency)
endfunction()
resolve_nlohmann_json_dependency()
+
+# ----------------------------------------------------------------------
+# zlib
+
+function(resolve_zlib_dependency)
+ # use system zlib, zlib is required by arrow and avro
+ find_package(ZLIB REQUIRED)
+ if(ZLIB_FOUND)
+ list(APPEND ICEBERG_SYSTEM_DEPENDENCIES ZLIB)
+ message(STATUS "ZLIB_FOUND")
+ message(STATUS "ZLIB_LIBRARIES: ${ZLIB_LIBRARIES}")
+ message(STATUS "ZLIB_INCLUDE_DIR: ${ZLIB_INCLUDE_DIR}")
+ endif()
+
+endfunction()
+
+resolve_zlib_dependency()
Review Comment:
I moved them back to the end of file, that will be better.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]