orc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jcrist <...@git.apache.org>
Subject [GitHub] orc issue #192: Cleanup cmake scripts
Date Tue, 21 Nov 2017 22:02:19 GMT
Github user jcrist commented on the issue:

    https://github.com/apache/orc/pull/192
  
    As an example, in a downstream c++ project I'm building `liborc.a` using the following
`ExternalProject` setup:
    
    ```python
    set (ORC_CMAKE_ARGS -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
                        -DCMAKE_INSTALL_PREFIX=${ORC_PREFIX}
                        -DBUILD_LIBHDFSPP=OFF
                        -DBUILD_JAVA=OFF
                        -DBUILD_TOOLS=OFF
                        -DBUILD_CPP_TESTS=OFF
                        -DPROTOBUF_HOME=${PROTOBUF_HOME}
                        -DLZ4_HOME=${LZ4_HOME}
                        -DSNAPPY_HOME=${SNAPPY_HOME}
                        -DZLIB_HOME=${ZLIB_HOME})
    
    ExternalProject_Add(orc_ep
                        GIT_REPOSITORY "https://github.com/apache/orc"
                        GIT_TAG ${ORC_VERSION}
                        BUILD_BYPRODUCTS ${ORC_STATIC_LIB}
                        CMAKE_ARGS ${ORC_CMAKE_ARGS})
    ```
    
    where `protobuf`, `lz4`, `snappy`, and `zlib` are all already existing dependencies.


---

Mime
View raw message