Since GIT_SHA1 would need to be updated in config.h, all files including it would be rebuilt by make. Reduce the number of files to rebuild by moving this variable to version.h instead.
@@ -7,7 +7,6 @@
#cmakedefine CRASHREPORTER_EXECUTABLE "@CRASHREPORTER_EXECUTABLE@"
-#cmakedefine GIT_SHA1 "@GIT_SHA1@"
#cmakedefine APPLICATION_DOMAIN @APPLICATION_DOMAIN@
#cmakedefine THEME_CLASS @THEME_CLASS@
#cmakedefine THEME_INCLUDE @THEME_INCLUDE@
@@ -34,7 +34,6 @@
#include "theme.h"
#include "netrcparser.h"
-#include "version.h"
#include "config.h"
#ifdef Q_OS_WIN32
@@ -13,7 +13,6 @@
*/
#include "configfile.h"
#include "utility.h"
#include "accessmanager.h"
@@ -15,6 +15,8 @@
#ifndef VERSION_H
#define VERSION_H
+#cmakedefine GIT_SHA1 "@GIT_SHA1@"
+
#define MIRALL_STRINGIFY(s) MIRALL_TOSTRING(s)
#define MIRALL_TOSTRING(s) #s