Turning off wayland for raylib's zig build?

The only thing I can think of, is that you are somehow editing a wrong/other build.zig and that the actually used build.zig doesn’t have the .linux_display_backend = .X11, option set.

If it was set, then the code should never enter the branch that contains the You can switch to X11 in your ... message.

Hmm I have another dependency that also uses raylib. Maybe the error comes from there. Tried to pass the option to second dependency just like to raylib but didn’t accept it.

I have a structure like:

raylib <---- module1 <----- app 
   ^                         ^
   |-------------------------|

I still don’t get exactly how the dependency and build system works in detail. But I will try now to set the option also in the other module that uses raylib but it would be easier if it would be possible to pass an option thought the dependency definition to the build of the module. Does this make sense?

Edit: Okay, the option seems to work when I also set it in the build.zig of the module.
Now I’m missing the libraries on Windows…

error: error: unable to find dynamic system library 'GLX' using strategy 'paths_first'. searched paths: none
error: unable to find dynamic system library 'X11' using strategy 'paths_first'. searched paths: none
error: unable to find dynamic system library 'Xcursor' using strategy 'paths_first'. searched paths: none
error: unable to find dynamic system library 'Xext' using strategy 'paths_first'. searched paths: none
error: unable to find dynamic system library 'Xfixes' using strategy 'paths_first'. searched paths: none
error: unable to find dynamic system library 'Xi' using strategy 'paths_first'. searched paths: none
error: unable to find dynamic system library 'Xinerama' using strategy 'paths_first'. searched paths: none
error: unable to find dynamic system library 'Xrandr' using strategy 'paths_first'. searched paths: none
error: unable to find dynamic system library 'Xrender' using strategy 'paths_first'. searched paths: none