Skip to content

Commit 058cc2d

Browse files
authored
Merge pull request #152 from ed-w-ds/fix-cmake-link-order
Fix CMake link order for static OpenSSL and Curl dependencies
2 parents ce7693e + 79d8163 commit 058cc2d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

CMakeLists.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,13 @@ build_loadable_extension(httpfs ${PARAMETERS} ${EXTENSION_SOURCES})
3232
if(EMSCRIPTEN)
3333
target_link_libraries(httpfs_loadable_extension duckdb_mbedtls)
3434
else()
35-
target_link_libraries(httpfs_loadable_extension duckdb_mbedtls
36-
${OPENSSL_LIBRARIES})
37-
target_link_libraries(httpfs_extension duckdb_mbedtls ${OPENSSL_LIBRARIES})
38-
3935
# Link dependencies into extension
4036
target_link_libraries(httpfs_loadable_extension ${CURL_LIBRARIES})
4137
target_link_libraries(httpfs_extension ${CURL_LIBRARIES})
4238

39+
target_link_libraries(httpfs_loadable_extension duckdb_mbedtls
40+
${OPENSSL_LIBRARIES})
41+
target_link_libraries(httpfs_extension duckdb_mbedtls ${OPENSSL_LIBRARIES})
4342

4443
if(MINGW)
4544
find_package(ZLIB)

0 commit comments

Comments
 (0)