duckdb / duckdb/extension-template

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

Open
#96 6 comments 4 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
290
Forks
116
PR merge metrics
No merged PRs in 30d

Description

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](https://github.com/user-attachments/assets/a4be0857-4659-43ea-8b25-4db30c8afe1c)

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.