[cmake-developers] [PATCH] [RFC] handle c dependicies for files with utf-8 BOM

Evgeniy Dushistov dushistov at mail.ru
Mon Oct 14 04:19:06 EDT 2013


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-handle-c-dependicies-for-files-with-utf-8-BOM.patch
Type: text/x-diff
Size: 1053 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20131014/133a17ee/attachment-0001.patch>


More information about the cmake-developers mailing list