I had a very similar issue, which came from the language C not being defined in my CMakeLists.txt and therefore the glad.c being ignored.
project(blah VERSION 0.0.1 LANGUAGES C CXX # ^ This was missing )