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

@@ -15,6 +15,7 @@
*/
#include <SDL3/SDL.h>
#include <SDL3/SDL_main.h>
#include <SDL3/SDL_revision.h>
int main(int argc, char *argv[])
{