mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
b349e84fc7
Disable clickhouse-odbc-bridge building when odbc is disabled
19 lines
426 B
CMake
19 lines
426 B
CMake
if (NOT USE_INTERNAL_NANODBC_LIBRARY)
|
|
return ()
|
|
endif ()
|
|
|
|
set (LIBRARY_DIR ${ClickHouse_SOURCE_DIR}/contrib/nanodbc)
|
|
|
|
if (NOT TARGET unixodbc)
|
|
message(FATAL_ERROR "Configuration error: unixodbc is not a target")
|
|
endif()
|
|
|
|
set (SRCS
|
|
${LIBRARY_DIR}/nanodbc/nanodbc.cpp
|
|
)
|
|
|
|
add_library(nanodbc ${SRCS})
|
|
|
|
target_link_libraries (nanodbc PUBLIC unixodbc)
|
|
target_include_directories (nanodbc SYSTEM PUBLIC ${LIBRARY_DIR}/)
|