add a cmake option to switch between std and boost filesystem

This commit is contained in:
Chunting Gu
2021-05-27 11:15:08 +08:00
parent 39719c4ded
commit df96f969bc
31 changed files with 227 additions and 195 deletions
+2 -2
View File
@@ -9,7 +9,7 @@
#include <cstring> // for strrchr()
#include <string>
#include "boost/filesystem/path.hpp"
#include "webcc/fs.h"
// Log levels.
// VERB is similar to DEBUG commonly used by other projects.
@@ -44,7 +44,7 @@ const int LOG_FILE_OVERWRITE = LOG_FILE | LOG_OVERWRITE;
// Initialize logger.
// If |dir| is empty, log file will be generated in current directory.
void LogInit(const boost::filesystem::path& dir, int modes);
void LogInit(const fs::path& dir, int modes);
void Log(int level, const char* file, int line, const char* format, ...);