diff --git a/main.cpp b/main.cpp index 282ac63..13d4de4 100644 --- a/main.cpp +++ b/main.cpp @@ -381,7 +381,7 @@ int main(int argc, char *argv[]) std::string source_file = entry.path().string(); std::string ext = getFileExtension(source_file); - if ((ext == "cpp" || ext == "c") && !contains(exclude, entry.path().filename())) { + if ((ext == "cpp" || ext == "c") && !contains(exclude, entry.path().filename().string())) { MaybeRecompile(source_file); } }