diff --git a/plugins/builtin/source/content/communication_interface.cpp b/plugins/builtin/source/content/communication_interface.cpp index 365461203..109f1be1d 100644 --- a/plugins/builtin/source/content/communication_interface.cpp +++ b/plugins/builtin/source/content/communication_interface.cpp @@ -18,8 +18,12 @@ namespace hex::plugin::builtin { result["build"] = { { "version", IMHEX_VERSION }, - { "commit", GIT_COMMIT_HASH_LONG }, - { "branch", GIT_BRANCH }, + #if defined(GIT_COMMIT_HASH_LONG) + { "commit", GIT_COMMIT_HASH_LONG }, + #endif + #if defined(GIT_BRANCH) + { "branch", GIT_BRANCH }, + #endif }; std::vector commands;