[cmake-developers] What about #line like feature in cmake language?

Brad King brad.king at kitware.com
Thu May 15 09:22:32 EDT 2014


On 05/15/2014 09:11 AM, Nicolas Desprès wrote:
> Do you think such a patch would be accepted after version 3 has
> been released?

I have no objection to the proposed feature to support generated
files mapping back to other sources.  If the patch is sound and
has associated documentation (e.g. Help/manual/cmake-language.7.rst)
and tests (e.g. Tests/RunCMake/Syntax) I think it can be accepted.

I do not think the policy Ben mentioned will be needed.  The syntax

 #line 1234 "/path/to/real/file"

is fairly obscure and will be treated as a comment by older CMakes.

-Brad




More information about the cmake-developers mailing list