[
https://issues.apache.org/jira/browse/ORC-204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16083130#comment-16083130
]
ASF GitHub Bot commented on ORC-204:
------------------------------------
Github user wgtmac commented on a diff in the pull request:
https://github.com/apache/orc/pull/135#discussion_r126828652
--- Diff: cmake_modules/ThirdpartyToolchain.cmake ---
@@ -0,0 +1,90 @@
+set (LZ4_VERSION "1.7.5")
+set (SNAPPY_VERSION "1.1.3")
+set (ZLIB_VERSION "1.2.11")
+set (THIRDPARTY_DIR "${CMAKE_BINARY_DIR}/c++/libs/thirdparty")
+
+string(TOUPPER ${CMAKE_BUILD_TYPE} UPPERCASE_BUILD_TYPE)
+
+# ----------------------------------------------------------------------
+# Snappy
+
+set (SNAPPY_PREFIX "${THIRDPARTY_DIR}/snappy_ep-install")
+set (SNAPPY_HOME "${SNAPPY_PREFIX}")
+set (SNAPPY_INCLUDE_DIRS "${SNAPPY_PREFIX}/include")
+set (SNAPPY_STATIC_LIB_NAME snappy)
+set (SNAPPY_STATIC_LIB
"${SNAPPY_PREFIX}/lib/${CMAKE_STATIC_LIBRARY_PREFIX}${SNAPPY_STATIC_LIB_NAME}${CMAKE_STATIC_LIBRARY_SUFFIX}")
+set (SNAPPY_SRC_URL
"${CMAKE_SOURCE_DIR}/c++/libs/snappy-${SNAPPY_VERSION}.tar.gz")
+if (${UPPERCASE_BUILD_TYPE} EQUAL "RELEASE")
+ set (SNAPPY_CXXFLAGS "CXXFLAGS='-DNDEBUG -O2'")
+endif ()
+
+ExternalProject_Add (snappy_ep
+ CONFIGURE_COMMAND ./configure "--prefix=${SNAPPY_PREFIX}"
${SNAPPY_CXXFLAGS}
+ BUILD_IN_SOURCE 1
+ BUILD_COMMAND ${MAKE}
+ INSTALL_DIR ${SNAPPY_PREFIX}
+ URL ${SNAPPY_SRC_URL}
--- End diff --
Just curious if it is better to put an HTTP URL here to download
compression libraries? In this approach, we can reduce the repo size and easy
to bump library version in the future.
> Upgrade c++ libraries for compression
> -------------------------------------
>
> Key: ORC-204
> URL: https://issues.apache.org/jira/browse/ORC-204
> Project: ORC
> Issue Type: Bug
> Reporter: Owen O'Malley
> Assignee: Deepak Majeti
>
> We should upgrade to the current versions of:
> * zlib
> * snappy
> * lz4
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)