You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@orc.apache.org by jcrist <gi...@git.apache.org> on 2017/11/21 22:02:19 UTC

[GitHub] orc issue #192: Cleanup cmake scripts

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.


---