cmake: generate git hash using GetRevisionDescription CMake module

This allows the build system (ninja/make/VS) to detect whether the current
checkout git commit has changed. If so, SDL_revision.h will be updated.
This commit is contained in:
Anonymous Maarten
2022-10-20 18:47:17 +02:00
committed by Anonymous Maarten
parent d4f7b0aa0e
commit f53d797cca
6 changed files with 343 additions and 32 deletions

View File

@@ -19,6 +19,7 @@
3. This notice may not be removed or altered from any source distribution.
*/
#include "SDL_internal.h"
#include "SDL3/SDL_revision.h"
#if defined(__WIN32__) || defined(__GDK__)
#include "core/windows/SDL_windows.h"