cmake bug or what?

i built sdl3 with cmake and at some point, using make, got an error:
“egl.h no such file or directory”
this file is indeed located in EGL/egl.h and the strange thing is that the same steps work for sdl2…