Fixed #8061 (Problems with handling of --project argument)

This commit is contained in:
Daniel Marjamäki 2018-08-31 16:06:52 +02:00
parent 173c737a5c
commit c7e5176284
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ ImportProject::Type ImportProject::import(const std::string &filename)
std::ifstream fin(filename); std::ifstream fin(filename);
if (!fin.is_open()) if (!fin.is_open())
return MISSING; return MISSING;
if (endsWith(filename, "compile_commands.json", 21)) { if (endsWith(filename, ".json", 5)) {
importCompileCommands(fin); importCompileCommands(fin);
return COMPILE_DB; return COMPILE_DB;
} else if (endsWith(filename, ".sln", 4)) { } else if (endsWith(filename, ".sln", 4)) {