From 58240fa2e1ac4234cf67374349ce606f1b6df643 Mon Sep 17 00:00:00 2001 From: ConfuSomu Date: Sun, 7 Jan 2024 16:15:57 +0100 Subject: Use configure_file instead of setting compile defs This should avoid unnecessary recompiles of the whole project when the git hash changes and the project is reconfigured. --- gen/git_version.h.in | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 gen/git_version.h.in (limited to 'gen') diff --git a/gen/git_version.h.in b/gen/git_version.h.in new file mode 100644 index 0000000..8732171 --- /dev/null +++ b/gen/git_version.h.in @@ -0,0 +1,3 @@ +#pragma once +#cmakedefine GIT_DESCRIBE_TEXT ${GIT_DESCRIBE_TEXT} +#cmakedefine GIT_COMMIT_HASH ${GIT_COMMIT_HASH} -- cgit v1.2.3-54-g00ecf