Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
lmangani authored Jan 3, 2025
1 parent c2b0c15 commit 5e035bc
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions chsql/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,22 @@ endif()
set(EXTENSION_NAME ${TARGET_NAME}_extension)
set(LOADABLE_EXTENSION_NAME ${TARGET_NAME}_loadable_extension)

set(EXTENSION_INCLUDES
if(NOT EMSCRIPTEN OR NOT MINGW)
include_directories(
./src/include
./src
${CMAKE_CURRENT_SOURCE_DIR}/../duckdb/extension/parquet/include
${CMAKE_CURRENT_SOURCE_DIR}/../contribs/clickhouse-cpp
${CMAKE_CURRENT_SOURCE_DIR}/../contribs/clickhouse-cpp/contrib/absl
)
else()
include_directories(
./src/include
./src
${CMAKE_CURRENT_SOURCE_DIR}/../duckdb/extension/parquet/include
)

if(NOT EMSCRIPTEN OR NOT MINGW)
list(APPEND EXTENSION_INCLUDES ${CMAKE_CURRENT_SOURCE_DIR}/../contribs/clickhouse-cpp ${CMAKE_CURRENT_SOURCE_DIR}/../contribs/clickhouse-cpp/contrib/absl)
endif()

include_directories(EXTENSION_INCLUDES)

set(EXTENSION_SOURCES
src/chsql_extension.cpp
src/duck_flock.cpp
Expand Down

0 comments on commit 5e035bc

Please sign in to comment.