File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -12,17 +12,27 @@ set(EXTENSION_NAME ${TARGET_NAME}_extension)
12
12
set (LOADABLE_EXTENSION_NAME ${TARGET_NAME} _loadable_extension )
13
13
14
14
project (${TARGET_NAME} )
15
- include_directories (src/include duckdb/third_party/httplib )
15
+ include_directories (src/include duckdb/third_party/httplib duckdb/parquet/include )
16
16
17
17
set (EXTENSION_SOURCES src/httpserver_extension.cpp )
18
18
19
+ if (MINGW )
20
+ set (OPENSSL_USE_STATIC_LIBS TRUE )
21
+ endif ()
22
+
19
23
build_static_extension (${TARGET_NAME} ${EXTENSION_SOURCES} )
20
24
build_loadable_extension (${TARGET_NAME} " " ${EXTENSION_SOURCES} )
21
25
22
26
# Link OpenSSL in both the static library as the loadable extension
23
27
target_link_libraries (${EXTENSION_NAME} OpenSSL::SSL OpenSSL::Crypto )
24
28
target_link_libraries (${LOADABLE_EXTENSION_NAME} OpenSSL::SSL OpenSSL::Crypto )
25
29
30
+ if (MINGW )
31
+ find_package (ZLIB )
32
+ target_link_libraries (httpfs_loadable_extension ZLIB::ZLIB -lcrypt32 )
33
+ target_link_libraries (httpfs_extension ZLIB::ZLIB -lcrypt32 )
34
+ endif ()
35
+
26
36
install (
27
37
TARGETS ${EXTENSION_NAME}
28
38
EXPORT "${DUCKDB_EXPORT_SET} "
You can’t perform that action at this time.
0 commit comments