From dabe4bcff79dd1dd378eaba8a6aa74bede134479 Mon Sep 17 00:00:00 2001 From: Blake-Madden <66873089+Blake-Madden@users.noreply.github.com> Date: Wed, 4 Sep 2024 06:37:10 -0400 Subject: [PATCH] ignore CMake build files --- src/input.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/input.cpp b/src/input.cpp index 29fc4a6..d64aeb6 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -118,7 +118,10 @@ namespace i18n_check ext.compare(std::filesystem::path(L".cpp")) == 0 || ext.compare(std::filesystem::path(L".h")) == 0 || ext.compare(std::filesystem::path(L".hpp")) == 0 || - ext.compare(std::filesystem::path(L".po")) == 0)) + ext.compare(std::filesystem::path(L".po")) == 0) && + // ignore CMake build files + p.path().filename().compare(L"CMakeCXXCompilerId.cpp") != 0 && + p.path().filename().compare(L"CMakeCCompilerId.c") != 0) { filesToAnalyze.push_back(p.path().wstring()); }