output SMESH version number in about dialog
- in order to get this info when user reports bugs
This commit is contained in:
@@ -9,13 +9,20 @@
|
||||
# include <${OCC_INCLUDE_DIR}/Standard_Version.hxx>
|
||||
#endif
|
||||
|
||||
#cmakedefine BUILD_SMESH
|
||||
|
||||
#if defined(BUILD_SMESH)
|
||||
# include <SMESH_Version.h>
|
||||
#endif
|
||||
|
||||
|
||||
/* No need for Boost (version info is always included in the source) */
|
||||
/* No need for Python (version info is always included in the source) */
|
||||
/* No need for Qt (version info is always included in the source) */
|
||||
/* No need for SMESH (version info is always included in the source) */
|
||||
/* No need for zlib (version info is always included in the source) */
|
||||
|
||||
// No CMake version info for SMESH, libarea, Zipios, or KDL
|
||||
// No CMake version info for libarea, Zipios, or KDL
|
||||
|
||||
// Coin3D
|
||||
constexpr char * FC_COIN3D_VERSION = "${COIN3D_VERSION}";
|
||||
|
||||
@@ -9,4 +9,6 @@
|
||||
#define SMESH_VERSION_PATCH ${SMESH_VERSION_PATCH}
|
||||
#define SMESH_VERSION_TWEAK ${SMESH_VERSION_TWEAK}
|
||||
|
||||
#define SMESH_VERSION_STR "${SMESH_VERSION_MAJOR}.${SMESH_VERSION_MINOR}.${SMESH_VERSION_PATCH}.${SMESH_VERSION_TWEAK}"
|
||||
|
||||
#endif // SMESH_VERSION_H
|
||||
|
||||
@@ -25,12 +25,12 @@
|
||||
|
||||
#ifndef _PreComp_
|
||||
# if defined(FC_OS_LINUX) || defined(FC_OS_MACOSX) || defined(FC_OS_BSD)
|
||||
# include <unistd.h>
|
||||
# include <pwd.h>
|
||||
# include <sys/types.h>
|
||||
# include <unistd.h>
|
||||
# include <pwd.h>
|
||||
# include <sys/types.h>
|
||||
# elif defined(__MINGW32__)
|
||||
# define WINVER 0x502 // needed for SetDllDirectory
|
||||
# include <Windows.h>
|
||||
# define WINVER 0x502 // needed for SetDllDirectory
|
||||
# include <Windows.h>
|
||||
# endif
|
||||
# include <boost/program_options.hpp>
|
||||
# include <boost/date_time/posix_time/posix_time.hpp>
|
||||
@@ -2313,6 +2313,7 @@ void processProgramOptions(const variables_map& vm, std::map<std::string,std::st
|
||||
str << "Python " << PY_VERSION << '\n';
|
||||
str << "PySide " << FC_PYSIDE_VERSION << '\n';
|
||||
str << "shiboken " << FC_SHIBOKEN_VERSION << '\n';
|
||||
str << "SMESH " << SMESH_VERSION_STR << '\n';
|
||||
str << "VTK " << FC_VTK_VERSION << '\n';
|
||||
str << "xerces-c " << FC_XERCESC_VERSION << '\n';
|
||||
}
|
||||
@@ -2605,6 +2606,7 @@ void Application::initConfig(int argc, char ** argv)
|
||||
mConfig["QT_VERSION"] = QT_VERSION_STR;
|
||||
mConfig["EIGEN_VERSION"] = FC_EIGEN3_VERSION;
|
||||
mConfig["PYSIDE_VERSION"] = FC_PYSIDE_VERSION;
|
||||
mConfig["SMESH_VERSION"] = SMESH_VERSION_STR;
|
||||
mConfig["XERCESC_VERSION"] = FC_XERCESC_VERSION;
|
||||
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
# include <cstdlib>
|
||||
# include <QApplication>
|
||||
@@ -590,7 +591,7 @@ void AboutDialog::showLibraryInformation()
|
||||
li.name = QLatin1String("Salome SMESH");
|
||||
li.href = baseurl + QLatin1String("#_TocSalomeSMESH");
|
||||
li.url = QLatin1String("https://salome-platform.org");
|
||||
li.version.clear();
|
||||
li.version = QLatin1String(SMESH_VERSION_STR);
|
||||
libInfo << li;
|
||||
|
||||
// Shiboken
|
||||
|
||||
Reference in New Issue
Block a user