<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE>RE: [CMake] Eclipse generator - scanner-discovered include pathsand pre-processor symbols</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Hi Alex,<BR>
<BR>
Thanks for the change.&nbsp; The version you sent didn't end up working here (with just a CXX project).&nbsp; The line to set the compiler is checking for &quot;CXX&quot; but, at least on my system, &quot;${_lang}&quot; is set to &quot;c++&quot;.&nbsp; Once I changed the line to check for &quot;CXX&quot; or &quot;c++&quot;, it worked fine.&nbsp; I also noticed that /usr/include was not being added, and it was because the regexp was skipping the last line of includes.&nbsp; I have modified the regexp slightly, and that worked as well.&nbsp; I have attached the changed file for you to compare, I am not sure if the changes are just specific to my system.<BR>
<BR>
Thanks,<BR>
Shash<BR>
<BR>
-----Original Message-----<BR>
From: Alexander Neundorf [<A HREF="mailto:a.neundorf-work@gmx.net">mailto:a.neundorf-work@gmx.net</A>]<BR>
Sent: Sun 3/27/2011 11:24 AM<BR>
To: cmake@cmake.org<BR>
Cc: Chatterjee, Shash<BR>
Subject: Re: [CMake] Eclipse generator - scanner-discovered include pathsand pre-processor symbols<BR>
<BR>
Ah, indeed, it was using CMAKE_C_COMPILER also when finding out the C++ stuff,<BR>
which works, but only if CMAKE_C_COMPILER is actually set.<BR>
Please try the attached version, this should also work with your CXX-only<BR>
project.<BR>
Let me know whether it works for you.<BR>
<BR>
Thanks<BR>
Alex<BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>