Skip to content

Commit ef88e97

Browse files
author
Felix Faber
committed
This change is crucial when $(SolutionDir) = "" and includePath is $(SolutionDir)/libs.
Without this change, the include path will be "/libs", which is not the same as "./libs" or "libs".
1 parent 5b1f19d commit ef88e97

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/importproject.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,8 @@ ImportProject::Type ImportProject::import(const std::string &filename, Settings
193193
mPath = Path::getPathFromFilename(Path::fromNativeSeparators(filename));
194194
if (!mPath.empty() && !endsWith(mPath,'/'))
195195
mPath += '/';
196+
if (mPath.empty())
197+
mPath = std::string("./");
196198

197199
const std::vector<std::string> fileFilters =
198200
settings ? settings->fileFilters : std::vector<std::string>();

0 commit comments

Comments
 (0)