mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 19:12:03 +00:00
Copy changes from LLVM {5,6} CMakeLists to 7
This commit is contained in:
parent
f070f73220
commit
cfc41e1a64
@ -10,11 +10,6 @@ target_compile_options(clickhouse-compiler-lib PRIVATE -fno-rtti -fno-exceptions
|
|||||||
|
|
||||||
llvm_map_components_to_libnames(REQUIRED_LLVM_LIBRARIES all)
|
llvm_map_components_to_libnames(REQUIRED_LLVM_LIBRARIES all)
|
||||||
|
|
||||||
# We link statically with zlib, and LLVM (sometimes) tries to bring its own dependency.
|
|
||||||
list(REMOVE_ITEM REQUIRED_LLVM_LIBRARIES "-lz")
|
|
||||||
# Wrong library in freebsd:
|
|
||||||
list(REMOVE_ITEM REQUIRED_LLVM_LIBRARIES "-l/usr/lib/libexecinfo.so")
|
|
||||||
|
|
||||||
message(STATUS "Using LLVM ${LLVM_VERSION}: ${LLVM_INCLUDE_DIRS} : ${REQUIRED_LLVM_LIBRARIES}")
|
message(STATUS "Using LLVM ${LLVM_VERSION}: ${LLVM_INCLUDE_DIRS} : ${REQUIRED_LLVM_LIBRARIES}")
|
||||||
|
|
||||||
target_include_directories(clickhouse-compiler-lib PRIVATE ${LLVM_INCLUDE_DIRS})
|
target_include_directories(clickhouse-compiler-lib PRIVATE ${LLVM_INCLUDE_DIRS})
|
||||||
|
Loading…
Reference in New Issue
Block a user