ENH: reduce dependencies for foamVersion.H

- have printBuildInfo output to std::ostream
- removed extraneous include "stdFoam.H"

ENH: revert to pre-processor defines for hard-coded paths (#1712)

- redundant information, but more robust at run-time without relying
  on initialization order
This commit is contained in:
Mark Olesen
2020-05-28 13:34:02 +02:00
parent bee23c79bd
commit 5eebe5050b
7 changed files with 62 additions and 58 deletions

View File

@ -5,7 +5,7 @@
\\ / A nd | www.openfoam.com
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2018-2019 OpenCFD Ltd.
Copyright (C) 2018-2020 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -51,9 +51,8 @@ void testExtraction(const std::string& str)
int main()
{
Info
<< "\nVersion information (function)" << nl;
foamVersion::printBuildInfo();
Info<< "\nVersion information (function)" << nl;
foamVersion::printBuildInfo(Info().stdStream());
Info
<< "\nVersion information (macros)" << nl

View File

@ -8,6 +8,6 @@ namespace Foam
void printTest()
{
Info<< nl;
foamVersion::printBuildInfo();
foamVersion::printBuildInfo(Info().stdStream());
}
}