Add support for ngspice >= 35 version reporting
This commit is contained in:
parent
0120c5fa4b
commit
6b48825aa0
|
@ -40,6 +40,10 @@ extern std::string GetCurlLibVersion();
|
||||||
#include <Standard_Version.hxx>
|
#include <Standard_Version.hxx>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined( KICAD_SPICE )
|
||||||
|
#include <ngspice/sharedspice.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
// The include file version.h is always created even if the repo version cannot be
|
// The include file version.h is always created even if the repo version cannot be
|
||||||
// determined. In this case KICAD_VERSION_FULL will default to the KICAD_VERSION
|
// determined. In this case KICAD_VERSION_FULL will default to the KICAD_VERSION
|
||||||
// that is set in KiCadVersion.cmake.
|
// that is set in KiCadVersion.cmake.
|
||||||
|
@ -181,6 +185,8 @@ wxString GetVersionInfoData( const wxString& aTitle, bool aHtml, bool aBrief )
|
||||||
#undef HAVE_STRNCASECMP /* is redefined in ngspice/config.h */
|
#undef HAVE_STRNCASECMP /* is redefined in ngspice/config.h */
|
||||||
#include <ngspice/config.h>
|
#include <ngspice/config.h>
|
||||||
aMsg << indent4 << "ngspice: " << PACKAGE_VERSION << eol;
|
aMsg << indent4 << "ngspice: " << PACKAGE_VERSION << eol;
|
||||||
|
#elif defined( NGSPICE_PACKAGE_VERSION )
|
||||||
|
aMsg << indent4 << "ngspice: " << NGSPICE_PACKAGE_VERSION << eol;
|
||||||
#else
|
#else
|
||||||
aMsg << indent4 << "ngspice: " << "unknown" << eol;
|
aMsg << indent4 << "ngspice: " << "unknown" << eol;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue