1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-12-01 14:18:08 +00:00

Require at least Boost 1.45, so boost:filesystem::temp_directory_path()

can be used. It is useful on Mac OS X, where the log folder is not at
/tmp. Boost 1.45 was released on Nov 9th, 2010, so it is unlikely that
any user is using something older.
This commit is contained in:
Carles Fernandez
2014-06-10 00:14:18 +02:00
parent c85efa7473
commit fabf623c43
2 changed files with 5 additions and 9 deletions

View File

@@ -134,14 +134,11 @@ int main(int argc, char** argv)
google::InitGoogleLogging(argv[0]);
if (FLAGS_log_dir.empty())
{
// temp_directory_path() is only available from
// Boost 1.45. Ubuntu 10.10 and Debian 6.0.6 ships with 1.42
std::cout << "Logging will be done at "
//<< boost::filesystem::temp_directory_path()
<< "/tmp"
<< std::endl
<< "Use gnss-sdr --log_dir=/path/to/log to change that."
<< std::endl;
std::cout << "Logging will be done at "
<< boost::filesystem::temp_directory_path()
<< std::endl
<< "Use gnss-sdr --log_dir=/path/to/log to change that."
<< std::endl;
}
else
{