<!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. The version you sent didn't end up working here (with just a CXX project). The line to set the compiler is checking for "CXX" but, at least on my system, "${_lang}" is set to "c++". Once I changed the line to check for "CXX" or "c++", it worked fine. I also noticed that /usr/include was not being added, and it was because the regexp was skipping the last line of includes. I have modified the regexp slightly, and that worked as well. 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>