cmake: compile git hash into separate object

Should improve incremental compile speeds
This commit is contained in:
itsmattkc
2021-04-28 18:19:26 +10:00
parent befb591b06
commit aeb3a83293
7 changed files with 85 additions and 13 deletions
+1
View File
@@ -19,6 +19,7 @@ add_executable(
olive-crashhandler
crashhandler.cpp
crashhandler.h
$<TARGET_OBJECTS:olive-version-obj>
)
# Disable console appearing on crash handler dialog
+2 -1
View File
@@ -38,6 +38,7 @@
#include "common/crashpadutils.h"
#include "common/filefunctions.h"
#include "version.h"
namespace olive {
@@ -227,7 +228,7 @@ void CrashHandlerDialog::SendErrorReport()
QHttpPart commit_part;
commit_part.setHeader(QNetworkRequest::ContentTypeHeader, QStringLiteral("text/plain; charset=UTF-8"));
commit_part.setHeader(QNetworkRequest::ContentDispositionHeader, QStringLiteral("form-data; name=\"commit\""));
commit_part.setBody(GITHASH);
commit_part.setBody(kGitHash);
multipart->append(commit_part);
// Create dump section