The patch appears to not handle empty files or files with less than 3 characters. Does it need to?
Clint ----- Reply message ----- From: "Evgeniy Dushistov" <dushis...@mail.ru> Date: Mon, Oct 14, 2013 2:19 am Subject: [cmake-developers] [PATCH] [RFC] handle c dependicies for files with utf-8 BOM To: <cmake-developers@cmake.org> Hi, here is description of the problem: http://www.cmake.org/pipermail/cmake/2013-October/056008.html in short, cmake not handle dependencies of c/c++ source file from c/c++ header file, if source file has utf-8 BOM. So, if for example in your team used Visual Studio with preference to save files in utf-8 (Qt 5 now works only with UTF-8), and linux+cmake+gcc, then someday you see that you change header files, but corresponded c++ source file was not recompiled. Here (in attachment) is possible solution of this problem (it passes all tests, except two, but they fails and without this patch). -- /Evgeniy
-- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers