Skip to content

Commit 0eca110

Browse files
committed
Enable extension autoinstall and autoloading
1 parent 4a947b9 commit 0eca110

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmake/duckdb_loader.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,10 @@ _duckdb_set_default(BUILD_UNITTESTS OFF)
4747
_duckdb_set_default(BUILD_BENCHMARKS OFF)
4848
_duckdb_set_default(DISABLE_UNITY OFF)
4949

50-
# Extension configuration - static linking for Python modules
50+
# Extension configuration
5151
_duckdb_set_default(DISABLE_BUILTIN_EXTENSIONS OFF)
52+
_duckdb_set_default(ENABLE_EXTENSION_AUTOINSTALL 1) # todo: set to ON https://github.com/duckdb/duckdb/pull/18778/files
53+
_duckdb_set_default(ENABLE_EXTENSION_AUTOLOADING ON)
5254

5355
# Performance options - enable optimizations by default
5456
_duckdb_set_default(NATIVE_ARCH OFF)
@@ -69,6 +71,8 @@ set(BUILD_UNITTESTS "${BUILD_UNITTESTS}" CACHE BOOL "Build DuckDB unit tests")
6971
set(BUILD_BENCHMARKS "${BUILD_BENCHMARKS}" CACHE BOOL "Build DuckDB benchmarks")
7072
set(DISABLE_UNITY "${DISABLE_UNITY}" CACHE BOOL "Disable unity builds (slower compilation)")
7173
set(DISABLE_BUILTIN_EXTENSIONS "${DISABLE_BUILTIN_EXTENSIONS}" CACHE BOOL "Disable all built-in extensions")
74+
set(ENABLE_EXTENSION_AUTOINSTALL "${ENABLE_EXTENSION_AUTOINSTALL}" CACHE BOOL "Enable extension auto-installing by default.")
75+
set(ENABLE_EXTENSION_AUTOLOADING "${ENABLE_EXTENSION_AUTOLOADING}" CACHE BOOL "Enable extension auto-loading by default.")
7276
set(NATIVE_ARCH "${NATIVE_ARCH}" CACHE BOOL "Optimize for native architecture")
7377
set(ENABLE_SANITIZER "${ENABLE_SANITIZER}" CACHE BOOL "Enable address sanitizer")
7478
set(ENABLE_UBSAN "${ENABLE_UBSAN}" CACHE BOOL "Enable undefined behavior sanitizer")

0 commit comments

Comments
 (0)