Move version number to separate file so CMake doesn't reconfigure when it changes
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user