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.

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.