We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b69cab3 commit 21c351bCopy full SHA for 21c351b
1 file changed
CMakeLists.txt
@@ -57,6 +57,11 @@ target_include_directories(
57
INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/duckdb_py/include>
58
)
59
60
+# We link duckdb_static. Without this define, duckdb.h marks C API symbols
61
+# __declspec(dllimport) on Windows, producing unresolvable __imp_* references at
62
+# link time. No-op on non-Windows.
63
+target_compile_definitions(_duckdb_dependencies INTERFACE DUCKDB_STATIC_BUILD)
64
+
65
# ────────────────────────────────────────────
66
# Descend into the real DuckDB‑Python sources
67
0 commit comments