cmake: avoid copy of headers by moving generated headers to include/build_config (thanks @madebr!)

Shove all build system generated headers in include/build_config.
Doing this, cmake does not need to copy the headers anymore.
This was done for external projects vendoring SDL.

See https://github.com/libsdl-org/SDL/issues/6641#issuecomment-1328092535
This commit is contained in:
Sam Lantinga committed 2022-11-26 15:37:08 -08:00
1 parent 9c8369e097
commit e4b97c42b3
2 files changed
+45 -45

No files matched your search

@@ -0,0 +1,8 @@
#cmakedefine SDL_VENDOR_INFO "@SDL_VENDOR_INFO@"
#define SDL_REVISION_NUMBER 0
#ifdef SDL_VENDOR_INFO
#define SDL_REVISION "@SDL_REVISION@ (" SDL_VENDOR_INFO ")"
#else
#define SDL_REVISION "@SDL_REVISION@"
#endif