Move version number to separate file so CMake doesn't reconfigure when it changes

This commit is contained in:
sentientstardust
2026-05-12 03:00:59 +01:00
parent fdbbf5f135
commit d7c66ac575
12 changed files with 61 additions and 17 deletions

View File

@ -38,8 +38,12 @@ CBaseException::CBaseException(HANDLE hProcess, WORD wPID, LPCTSTR lpSymbolPath,
std::string log_filename = crash_log_path.string();
output_file->open(log_filename, std::ios::out | std::ios::app);
// Output app build info in crash log so we could look for the correct PDB files
OutputString(_T("%s\n\n"), _T(SLIC3R_APP_NAME " " SoftFever_VERSION " Build " GIT_COMMIT_HASH));
const std::string build_info = std::string(SLIC3R_APP_NAME) + " " + SoftFever_VERSION + " Build " + GIT_COMMIT_HASH;
#ifdef UNICODE
OutputString(_T("%S\n\n"), build_info.c_str());
#else
OutputString(_T("%s\n\n"), build_info.c_str());
#endif
}
}
@ -390,4 +394,4 @@ void CBaseException::ShowExceptionInformation()
ShowRegistorInformation(m_pEp->ContextRecord);
ShowCallstack(GetCurrentThread(), m_pEp->ContextRecord);
}
}