Skip to content

Commit 8750052

Browse files
Lorenzo ManganiLorenzo Mangani
Lorenzo Mangani
authored and
Lorenzo Mangani
committed
resync
1 parent e7a59d4 commit 8750052

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

CMakeLists.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,23 @@ set(EXTENSION_NAME ${TARGET_NAME}_extension)
77
set(LOADABLE_EXTENSION_NAME ${TARGET_NAME}_loadable_extension)
88

99
project(${TARGET_NAME})
10-
include_directories(src/include)
10+
11+
# Find Boost headers from vcpkg
12+
find_package(Boost REQUIRED)
13+
include_directories(
14+
src/include
15+
${Boost_INCLUDE_DIRS}
16+
)
1117

1218
set(EXTENSION_SOURCES src/redis_extension.cpp)
1319

1420
build_static_extension(${TARGET_NAME} ${EXTENSION_SOURCES})
1521
build_loadable_extension(${TARGET_NAME} " " ${EXTENSION_SOURCES})
1622

23+
# Add Boost include directories to targets
24+
target_include_directories(${EXTENSION_NAME} PRIVATE ${Boost_INCLUDE_DIRS})
25+
target_include_directories(${LOADABLE_EXTENSION_NAME} PRIVATE ${Boost_INCLUDE_DIRS})
26+
1727
install(
1828
TARGETS ${EXTENSION_NAME}
1929
EXPORT "${DUCKDB_EXPORT_SET}"

0 commit comments

Comments
 (0)