+ fix build failure if SMESH support is disabled

This commit is contained in:
wmayer
2022-11-06 20:23:13 +01:00
parent b3372a5205
commit 0c7c427b7e
2 changed files with 8 additions and 0 deletions

View File

@@ -2313,7 +2313,9 @@ 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';
#ifdef SMESH_VERSION_STR
str << "SMESH " << SMESH_VERSION_STR << '\n';
#endif
str << "VTK " << FC_VTK_VERSION << '\n';
str << "xerces-c " << FC_XERCESC_VERSION << '\n';
}
@@ -2606,7 +2608,9 @@ 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;
#ifdef SMESH_VERSION_STR
mConfig["SMESH_VERSION"] = SMESH_VERSION_STR;
#endif
mConfig["XERCESC_VERSION"] = FC_XERCESC_VERSION;

View File

@@ -605,7 +605,11 @@ void AboutDialog::showLibraryInformation()
li.name = QLatin1String("Salome SMESH");
li.href = baseurl + QLatin1String("#_TocSalomeSMESH");
li.url = QLatin1String("https://salome-platform.org");
#ifdef SMESH_VERSION_STR
li.version = QLatin1String(SMESH_VERSION_STR);
#else
li.version.clear();
#endif
libInfo << li;
// Shiboken