1
0
Fork 0

FLIGHTGEAR_VERSION is always set.

This commit is contained in:
James Turner 2015-06-07 21:08:03 +02:00
parent 4289ac77dd
commit 0f90a2e9f3

View file

@ -410,12 +410,7 @@ int fgMainInit( int argc, char **argv )
logToFile();
}
std::string version;
#ifdef FLIGHTGEAR_VERSION
version = FLIGHTGEAR_VERSION;
#else
version = "unknown version";
#endif
std::string version(FLIGHTGEAR_VERSION);
SG_LOG( SG_GENERAL, SG_INFO, "FlightGear: Version "
<< version );
SG_LOG( SG_GENERAL, SG_INFO, "Built with " << SG_COMPILER_STR);