mirror of
https://github.com/apache/impala.git
synced 2026-01-01 00:00:20 -05:00
This patch allows to optionally enable the new Impala binary toolchain. For now there are now major version differences in the toolchain dependencies and what is currently kept in thirdparty. To enable the toolchain, export the variable IMPALA_TOOLCHAIN to the folder where the binaries are available. In addition this patch moves gutil from the thirdparty directory into the source tree of be/src to allow easy propagation of compiler and linker flags. Furthermore, the thrift-cpp target was added as a dependency to all targets that require the generated thrift sources to be available before the build is started. What is the new toolchain: The goal of the toolchain is to homogenize the build environment and to make sure that Impala is build nearly identical on every platform. To achieve this, we limit the flexibility of using the systems host libraries and rather rely on a set of custom produced binaries including the necessary compiler. Change-Id: If2dac920520e4a18be2a9a75b3184a5bd97a065b Reviewed-on: http://gerrit.cloudera.org:8080/427 Reviewed-by: Adar Dembo <adar@cloudera.com> Tested-by: Internal Jenkins Reviewed-by: Martin Grund <mgrund@cloudera.com>
36 lines
932 B
CMake
36 lines
932 B
CMake
# OPENSSL_ROOT hints the location
|
|
# Provides
|
|
# - OPENSSL_LIBRARIES,
|
|
# - OPENSSL_STATIC,
|
|
# - OPENSSL_INCLUDE_DIR,
|
|
# - OPENSSL_FOUND
|
|
set(_OPENSSL_SEARCH_DIR)
|
|
|
|
if (OPENSSL_ROOT)
|
|
set(_OPENSSL_SEARCH_DIR PATHS ${OPENSSL_ROOT} NO_DEFAULT_PATH)
|
|
endif()
|
|
|
|
find_path(OPENSSL_INCLUDE_DIR openssl/opensslconf.h
|
|
${_OPENSSL_SEARCH_DIR} PATH_SUFFIXES include)
|
|
|
|
# Add dynamic and static libraries
|
|
find_library(OPENSSL_SSL ssl ${_OPENSSL_SEARCH_DIR} PATH_SUFFIXES lib lib64)
|
|
find_library(OPENSSL_CRYPTO crypto ${_OPENSSL_SEARCH_DIR} PATH_SUFFIXES lib lib64)
|
|
|
|
if (NOT OPENSSL_SSL AND
|
|
NOT OPENSSL_CRYPTO)
|
|
message(FATAL_ERROR "OpenSSL not found in ${OPENSSL_ROOT}")
|
|
set(OPENSSL_FOUND FALSE)
|
|
else()
|
|
set(OPENSSL_FOUND TRUE)
|
|
message(STATUS "OpenSSL: ${OPENSSL_INCLUDE_DIR}")
|
|
set(OPENSSL_LIBRARIES ${OPENSSL_SSL} ${OPENSSL_CRYPTO})
|
|
endif()
|
|
|
|
mark_as_advanced(
|
|
OPENSSL_INCLUDE_DIR
|
|
OPENSSL_LIBRARIES
|
|
OPENSSL_CRYPTO
|
|
OPENSSL_SSL
|
|
)
|