From 79d81636661a69cc2f91667e432d0628b23fec7d Mon Sep 17 00:00:00 2001 From: ed-w-ds Date: Tue, 28 Oct 2025 08:29:42 +0000 Subject: [PATCH] Fix CMake link order for static OpenSSL and Curl dependencies resolving issue #151 --- CMakeLists.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 40a19e8..6954beb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,14 +32,13 @@ build_loadable_extension(httpfs ${PARAMETERS} ${EXTENSION_SOURCES}) if(EMSCRIPTEN) target_link_libraries(httpfs_loadable_extension duckdb_mbedtls) else() - target_link_libraries(httpfs_loadable_extension duckdb_mbedtls - ${OPENSSL_LIBRARIES}) - target_link_libraries(httpfs_extension duckdb_mbedtls ${OPENSSL_LIBRARIES}) - # Link dependencies into extension target_link_libraries(httpfs_loadable_extension ${CURL_LIBRARIES}) target_link_libraries(httpfs_extension ${CURL_LIBRARIES}) + target_link_libraries(httpfs_loadable_extension duckdb_mbedtls + ${OPENSSL_LIBRARIES}) + target_link_libraries(httpfs_extension duckdb_mbedtls ${OPENSSL_LIBRARIES}) if(MINGW) find_package(ZLIB)