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

@@ -64,7 +64,6 @@
#include <SDL3/SDL_quit.h>
#include <SDL3/SDL_rect.h>
#include <SDL3/SDL_render.h>
#include <SDL3/SDL_revision.h>
#include <SDL3/SDL_rwops.h>
#include <SDL3/SDL_scancode.h>
#include <SDL3/SDL_sensor.h>