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

clinton@elemtech.com clinton at elemtech.com
Mon Oct 14 10:47:30 EDT 2013


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" <dushistov at 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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20131014/42e05c3e/attachment.html>


More information about the cmake-developers mailing list