From acc8dae2b33c24ffe6ff445b7ba387c82af10aa2 Mon Sep 17 00:00:00 2001 From: Michael Maltese Date: Sun, 5 Feb 2017 22:26:44 -0800 Subject: CMake: use configure_file to generate scmrev.h The built-in `configure_file` command correctly handles the case where none of the variables change and scmrev.h doesn't need to be rebuilt. This saves a full re-link of Dolphin any time CMake is re-run. --- Source/Core/Common/scmrev.h.in | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Source/Core/Common/scmrev.h.in (limited to 'Source/Core') diff --git a/Source/Core/Common/scmrev.h.in b/Source/Core/Common/scmrev.h.in new file mode 100644 index 0000000000..6be4c461bb --- /dev/null +++ b/Source/Core/Common/scmrev.h.in @@ -0,0 +1,5 @@ +#define SCM_REV_STR "${DOLPHIN_WC_REVISION}" +#define SCM_DESC_STR "${DOLPHIN_WC_DESCRIBE}" +#define SCM_BRANCH_STR "${DOLPHIN_WC_BRANCH}" +#define SCM_IS_MASTER ${DOLPHIN_WC_IS_STABLE} +#define SCM_DISTRIBUTOR_STR "${DISTRIBUTOR}" -- cgit v1.2.3