Skip to content

vcpkg with CMake's target_link_libraries #131

@mcolosimo-p4

Description

@mcolosimo-p4

This does not actually link libraries. See duckdb-zlib

eERNS_6VectorE]+0x5b6): undefined reference to `zlibVersion'
extension/quack/libquack_extension.a(quack_extension.cpp.o):quack_extension.cpp:(.text._ZN6duckdb25QuackZlibVersionScalarFunERNS_9DataChunkERNS_15ExpressionStateERNS_6VectorE[_ZN6duckdb25QuackZlibVersionScalarFunERNS_9DataChunkERNS_15ExpressionStateERNS_6VectorE]+0xcc5): more undefined references to `zlibVersion' follow
collect2: error: ld returned 1 exit status

I was able to link zlib with a simple vcpkg and CMake project so it works.

We are adding it to LOADABLE_EXTENSION_NAME but probably need it for TARGET_NAME which generates this message:

 Cannot specify link libraries for target "quack" which is not built by this  project.

This is probably related to Issue #118

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions