mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Build fixes
This commit is contained in:
parent
c430af5fb8
commit
6e4b4f1c7f
@ -1,6 +1,7 @@
|
||||
language: generic
|
||||
|
||||
matrix:
|
||||
fast_finish: true
|
||||
include:
|
||||
- os: linux
|
||||
|
||||
@ -62,7 +63,7 @@ matrix:
|
||||
- utils/travis/pbuilder.sh
|
||||
|
||||
|
||||
# TODO: test and enable
|
||||
# Link problem
|
||||
# - os: osx
|
||||
# osx_image: xcode9.2
|
||||
#
|
||||
@ -71,7 +72,7 @@ matrix:
|
||||
# timeout: 1000
|
||||
#
|
||||
# before_install:
|
||||
# - brew install unixodbc libtool gettext zlib readline ccache gcc || true
|
||||
# - brew install unixodbc libtool gettext zlib readline poco librdkafka capnp double-conversion gperftools google-sparsehash re2 lz4 zstd ccache gcc || true
|
||||
# - brew link --overwrite gcc || true
|
||||
#
|
||||
# env:
|
||||
@ -84,6 +85,5 @@ matrix:
|
||||
allow_failures:
|
||||
- os: osx
|
||||
|
||||
before_install:
|
||||
- echo "${MATRIX_EVAL}"
|
||||
before_script:
|
||||
- eval "${MATRIX_EVAL}"
|
||||
|
@ -48,6 +48,9 @@ if ( ( ARCH_ARM AND NOT ARCH_AARCH64 ) OR ARCH_I386)
|
||||
set (ARCH_32 1)
|
||||
message (WARNING "Support for 32bit platforms is highly experimental")
|
||||
endif ()
|
||||
if (CMAKE_SYSTEM MATCHES "Linux")
|
||||
set (ARCH_LINUX 1)
|
||||
endif ()
|
||||
if (CMAKE_SYSTEM MATCHES "FreeBSD")
|
||||
set (ARCH_FREEBSD 1)
|
||||
endif ()
|
||||
@ -64,7 +67,10 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
set (COMMON_WARNING_FLAGS "${COMMON_WARNING_FLAGS} -Wno-unused-command-line-argument")
|
||||
endif ()
|
||||
|
||||
set (CXX11_ABI "ENABLE" CACHE STRING "Use C++11 ABI: DEFAULT, ENABLE, DISABLE")
|
||||
if (ARCH_LINUX)
|
||||
set (CXX11_ABI "ENABLE" CACHE STRING "Use C++11 ABI: DEFAULT, ENABLE, DISABLE")
|
||||
endif ()
|
||||
|
||||
option (TEST_COVERAGE "Enables flags for test coverage" OFF)
|
||||
option (ENABLE_TESTS "Enables tests" ON)
|
||||
|
||||
@ -86,7 +92,7 @@ endif ()
|
||||
if (CMAKE_LIBRARY_ARCHITECTURE MATCHES "amd64.*|x86_64.*|AMD64.*")
|
||||
option (USE_INTERNAL_MEMCPY "Use internal implementation of 'memcpy' function instead of provided by libc. Only for x86_64." ON)
|
||||
|
||||
if (CMAKE_SYSTEM MATCHES "Linux")
|
||||
if (ARCH_LINUX)
|
||||
option (GLIBC_COMPATIBILITY "Set to TRUE to enable compatibility with older glibc libraries. Only for x86_64, Linux. Implies USE_INTERNAL_MEMCPY." ON)
|
||||
endif()
|
||||
endif ()
|
||||
@ -166,7 +172,7 @@ set(THREADS_PREFER_PTHREAD_FLAG ON)
|
||||
|
||||
include (cmake/test_compiler.cmake)
|
||||
|
||||
if (CMAKE_SYSTEM MATCHES "Linux" AND CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
if (ARCH_LINUX AND CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${GLIBC_COMPATIBILITY_LINK_FLAGS} ${CXX11_ABI_FLAGS}")
|
||||
|
||||
option (USE_LIBCXX "Use libc++ and libc++abi instead of libstdc++ (only make sense on Linux with Clang)" ${HAVE_LIBCXX})
|
||||
@ -250,7 +256,7 @@ else ()
|
||||
set(NOT_UNBUNDLED 1)
|
||||
endif ()
|
||||
# Using system libs can cause lot of warnings in includes.
|
||||
if (UNBUNDLED OR NOT (CMAKE_SYSTEM MATCHES "Linux" OR APPLE) OR ARCH_32)
|
||||
if (UNBUNDLED OR NOT (ARCH_LINUX OR APPLE) OR ARCH_32)
|
||||
option (NO_WERROR "Disable -Werror compiler option" ON)
|
||||
endif ()
|
||||
|
||||
|
@ -193,6 +193,12 @@ endforeach()
|
||||
|
||||
if(Poco_DataODBC_LIBRARY)
|
||||
list(APPEND Poco_DataODBC_LIBRARY ${ODBC_LIBRARIES} ${LTDL_LIBRARY})
|
||||
list(APPEND Poco_INCLUDE_DIRS ${ODBC_INCLUDE_DIRECTORIES})
|
||||
endif()
|
||||
|
||||
if(Poco_NetSSL_LIBRARY)
|
||||
list(APPEND Poco_NetSSL_LIBRARY ${OPENSSL_LIBRARIES})
|
||||
list(APPEND Poco_INCLUDE_DIRS ${OPENSSL_INCLUDE_DIR})
|
||||
endif()
|
||||
|
||||
if(DEFINED Poco_LIBRARIES)
|
||||
|
Loading…
Reference in New Issue
Block a user