Dav1dde / glad

Multi-Language Vulkan/GL/GLES/EGL/GLX/WGL Loader-Generator based on the official specs.
https://glad.dav1d.de/
Other
3.73k stars 440 forks source link

glad2 debug build recompiles every launch #449

Closed CuriousRubick closed 8 months ago

CuriousRubick commented 8 months ago

Recently updated to glad2 and noticed that with the 'debug' option my program recompiles every source file that includes gl.h every time I run the program from vscode. Recompiliation occurs even if I select "run without debugging." Happens in both linux and windows (gcc, clang and msvc). Non-debug works as expected.

Current options from https://gen.glad.sh/ : "c/c++, gl 4.1, core, all ext, alias, loader"

Any idea what's going on?

edit

I link statically via cmake like this:

add_library(glad STATIC ${PATH}/src/gl.c) target_link_libraries(${APP_NAME} glad)

Also linking glfw.