Skip to content

Commit

Permalink
Add version information to the avogadro2.log on Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Geoff Hutchison <[email protected]>
  • Loading branch information
ghutchis committed Dec 7, 2024
1 parent 3de25db commit 39e72e7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions avogadro/avogadro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
#include <QFile>
#include <QTextStream>

#include <avogadro/core/version.h>

#include "application.h"
#include "mainwindow.h"

Expand Down Expand Up @@ -117,6 +119,12 @@ int main(int argc, char* argv[])

// install the message handler (goes to Documents / avogadro2.log)
qInstallMessageHandler(myMessageOutput);

// output the version information
qDebug() << "Avogadroapp version: " << AvogadroApp_VERSION;
qDebug() << "Avogadrolibs version: " << version();
qDebug() << "Qt version: " << qVersion();
qDebug() << "SSL version: " << QSslSocket::sslLibraryVersionString();
#endif

Avogadro::Application app(argc, argv);
Expand Down

0 comments on commit 39e72e7

Please sign in to comment.