Skip to content

Commit

Permalink
small fixes for multi extension vcpkg builds
Browse files Browse the repository at this point in the history
  • Loading branch information
samansmink committed Jun 16, 2023
1 parent 05d7972 commit d080ce9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,14 @@ build_loadable_extension(${TARGET_NAME} ${PARAMETERS} ${EXTENSION_SOURCES})
find_package(ZLIB REQUIRED)
find_package(AWSSDK REQUIRED COMPONENTS core)

target_include_directories(${EXTENSION_NAME} PRIVATE ${AWSSDK_INCLUDE_DIRS})
# Build static lib
target_include_directories(${EXTENSION_NAME} PUBLIC $<BUILD_INTERFACE:${AWSSDK_INCLUDE_DIRS}>)
target_link_libraries(${EXTENSION_NAME} ${AWSSDK_LINK_LIBRARIES})

# Build loadable binary
target_include_directories(${TARGET_NAME}_loadable_extension PRIVATE $<BUILD_INTERFACE:${AWSSDK_INCLUDE_DIRS}>)
target_link_libraries(${TARGET_NAME}_loadable_extension ${AWSSDK_LINK_LIBRARIES})

install(
TARGETS ${EXTENSION_NAME}
EXPORT "${DUCKDB_EXPORT_SET}"
Expand Down

0 comments on commit d080ce9

Please sign in to comment.