cmake: compile git hash into separate object
Should improve incremental compile speeds
This commit is contained in:
@@ -19,6 +19,7 @@ add_executable(
|
||||
olive-crashhandler
|
||||
crashhandler.cpp
|
||||
crashhandler.h
|
||||
$<TARGET_OBJECTS:olive-version-obj>
|
||||
)
|
||||
|
||||
# Disable console appearing on crash handler dialog
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user