Skip to content

Commit 0738045

Browse files
committed
libclang path
1 parent 95eac5d commit 0738045

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ corrosion_import_crate(MANIFEST_PATH vortex/Cargo.toml
3333
FLAGS --crate-type=staticlib
3434
)
3535

36+
# Ensure libraries installed by vcpkg are added to the library search path.
37+
# Specifically, libclang needs to be found in order to run rust-bindgen.
38+
set(VCPKG_TARGET_TRIPLET_DIR "${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}")
39+
40+
corrosion_add_target_rustflags(vortex_duckdb-static
41+
"-Clink-arg=-L${VCPKG_TARGET_TRIPLET_DIR}/lib"
42+
)
43+
3644
include_directories(src/include vortex/vortex-duckdb/include)
3745

3846
set(EXTENSION_NAME ${TARGET_NAME}_extension)

0 commit comments

Comments
 (0)