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 authored and Anonymous Maarten committed 2023-01-08 18:20:56 +01:00
1 parent d4f7b0aa0e
commit f53d797cca
6 files changed
+343 -32

No files matched your search

+1
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"