Skip to content

Error when running 'cmake Unknown CMake command "build_static_extension".' #96

@rob2244

Description

@rob2244

I'm new to the C/C++ ecosystem so I apologize if I'm doing something wrong, but it seems like when I try to run CMake I get an error that the build_static_extension command is missing.

image

I see that the function exists in the duckdb CMake files, do I have to copy it over or somehow include that file?

The reason that I'm trying to run cmake is that I'm trying to write a snowflake extension and I statically linked in the snowflake c library in CMakeLists.txt. When I run make it seems to be picking up the library, but when I run bear to generate the compile_commands.json file it doesn't seem to be picking up the snowflake lib paths and my editor doesn't pick up the header files.

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