| 55 | } |
| 56 | |
| 57 | void FileReader::setBasePath(boost::filesystem::path const& _path) |
| 58 | { |
| 59 | if (_path.empty()) |
| 60 | { |
| 61 | // Empty base path is a special case that does not make sense when include paths are used. |
| 62 | solAssert(m_includePaths.empty(), ""); |
| 63 | m_basePath = ""; |
| 64 | } |
| 65 | else |
| 66 | m_basePath = normalizeCLIPathForVFS(_path); |
| 67 | } |
| 68 | |
| 69 | void FileReader::addIncludePath(boost::filesystem::path const& _path) |
| 70 | { |