From 9fcf5faf693d65a2e15cddb2f13c80b799f12a62 Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 31 Mar 2022 16:33:00 +0200 Subject: [PATCH] App: in verbose mode print used library versions --- LibraryVersions.h.cmake | 4 +++- src/App/Application.cpp | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/LibraryVersions.h.cmake b/LibraryVersions.h.cmake index b3826872ef..9934d440d2 100644 --- a/LibraryVersions.h.cmake +++ b/LibraryVersions.h.cmake @@ -11,13 +11,15 @@ /* No need for Boost (version info is always included in the source) */ -/* No need for Coin (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 zlib (version info is always included in the source) */ // No CMake version info for SMESH, libarea, Zipios, or KDL +// Coin3D +constexpr char * FC_COIN3D_VERSION = "${COIN3D_VERSION}"; + // Eigen3 constexpr char * FC_EIGEN3_VERSION = "${EIGEN3_VERSION}"; diff --git a/src/App/Application.cpp b/src/App/Application.cpp index 8af91bcb08..0cf66135a5 100644 --- a/src/App/Application.cpp +++ b/src/App/Application.cpp @@ -2128,6 +2128,7 @@ void parseProgramOptions(int ac, char ** av, const string& exe, variables_map& v options_description generic("Generic options"); generic.add_options() ("version,v", "Prints version string") + ("verbose", "Prints verbose version string") ("help,h", "Prints help message") ("console,c", "Starts in console mode") ("response-file", value(),"Can be specified with '@name', too") @@ -2293,6 +2294,21 @@ void processProgramOptions(const variables_map& vm, std::map