Skip to content

Commit

Permalink
fix cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
lmangani committed Dec 31, 2024
1 parent 2594a4f commit 76e22f7
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions chsql/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,13 @@ build_static_extension(${TARGET_NAME} ${EXTENSION_SOURCES})
build_loadable_extension(${TARGET_NAME} " " ${EXTENSION_SOURCES})

# Link libraries using plain signature
target_link_libraries(${EXTENSION_NAME} OpenSSL::SSL OpenSSL::Crypto clickhouse-cpp-lib)
target_link_libraries(${LOADABLE_EXTENSION_NAME} OpenSSL::SSL OpenSSL::Crypto clickhouse-cpp-lib)
target_link_libraries(${EXTENSION_NAME} OpenSSL::SSL OpenSSL::Crypto clickhouse-cpp-lib absl_int128 cityhash lz4 zstdstatic)
target_link_libraries(${LOADABLE_EXTENSION_NAME} OpenSSL::SSL OpenSSL::Crypto clickhouse-cpp-lib absl_int128 cityhash lz4 zstdstatic)

# Install targets
install(
TARGETS ${EXTENSION_NAME} clickhouse-cpp-lib
TARGETS ${EXTENSION_NAME}
EXPORT "${DUCKDB_EXPORT_SET}"
LIBRARY DESTINATION "${INSTALL_LIB_DIR}"
ARCHIVE DESTINATION "${INSTALL_LIB_DIR}"
)

# Make sure the export set includes clickhouse-cpp-lib
export(
TARGETS ${EXTENSION_NAME} clickhouse-cpp-lib
NAMESPACE duckdb::
FILE DuckDBExports.cmake
)

0 comments on commit 76e22f7

Please sign in to comment.