combine the conditional compilation block

This commit is contained in:
2024-09-15 09:40:27 -05:00
committed by Celtic Minstrel
parent 71416f6fc5
commit 33a2df5145

View File

@@ -52,11 +52,9 @@ bool init_action_log(std::string command, std::string file) {
log_file = file; log_file = file;
try { try {
Element root_element("actions"); Element root_element("actions");
#if defined(GIT_REVISION) && defined(GIT_TAG) #ifndef MSBUILD_GITREV
root_element.SetAttribute("SHA", GIT_REVISION); root_element.SetAttribute("SHA", GIT_REVISION);
root_element.SetAttribute("Tag", GIT_TAG); root_element.SetAttribute("Tag", GIT_TAG);
#endif
#if defined(GIT_STATUS) && defined(GIT_REPO)
root_element.SetAttribute("Status", GIT_STATUS); root_element.SetAttribute("Status", GIT_STATUS);
root_element.SetAttribute("Repo", GIT_REPO); root_element.SetAttribute("Repo", GIT_REPO);
#endif #endif