When doing an out-of-tree build with CMake or configure, a custom SDL_config.h
is generated and is put into mybuilddir/include/SDL_config.h
. AFAICS, however, this custom SDL_config.h
, is never really used because SDL headers always use
#include "SDL_config.h"
instead of
#include <SDL_config.h>
Thus, SDL_config.h
is always loaded from the main include
directory in the SDL distribution and not from the build directory.
So what’s the purpose of the SDL_config.h
in the build directory anyhow? Isn’t this completely superfluous or have I missed anything here and this file is really used?