<div class="Ih2E3d">On Wed, Jun 18, 2008 at 10:43 AM, Christian Ehrlicher <<a href="mailto:Ch.Ehrlicher@gmx.de" target="_blank">Ch.Ehrlicher@gmx.de</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> Von: "Mehdi Rabah"<br>
<div><div>> On Tue, Jun 17, 2008 at 9:24 PM, Christian Ehrlicher <<a href="mailto:Ch.Ehrlicher@gmx.de" target="_blank">Ch.Ehrlicher@gmx.de</a>><br>
> wrote:<br>
><br>
> > Bill Hoffman schrieb:<br>
> ><br>
> >> Alexander Neundorf wrote:<br>
> >><br>
> >>> On Tuesday 17 June 2008, Christian Ehrlicher wrote:<br>
> >>> ...<br>
> >>><br>
> >>>> How do you define which vsvars32.bat (or vsvars64.bat) to use? I've<br>
> more<br>
> >>>> than one compiler on my system...<br>
> >>>><br>
> >>><br>
> >>> The first time you would have to run cmake in the right environment<br>
> (i.e.<br>
> >>> where the correct vcvars.bat has been executed).<br>
> >>> But I don't have a windows here, so I am not the best person for<br>
> this...<br>
> >>><br>
> >>><br>
> >> I realize some people get confused by this. However, I don't think it<br>
> is<br>
> >> too much to ask that you have a correct environment setup for using the<br>
> >> compiler. We ask no less on Linux/Unix. If gcc is incorrectly<br>
> installed,<br>
> >> and can't find headers, we don't try and add -I stuff to fix the<br>
> problem...<br>
> >><br>
> >> That's my opinion too - I don't see the point why it should be so hard<br>
> to<br>
> > set up the correct environment so that it must be done by cmake.<br>
> ><br>
> ><br>
> Hi,<br>
><br>
> The point is not to setup the compiler, it is to have cmake include path<br>
> pointing to standard locations. For example where STL header are<br>
> (like/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/include on<br>
> linux), to avoid extra configurations step in the IDE, not for the<br>
> compiler.<br>
> I talk especially about Eclipse CDT, in which STL automatic completion<br>
> work<br>
> well under linux, but not under windows.<br>
<br>
</div></div>This looks like a Eclipse bug rather than something cmake
can do for you. As you already said - they're standard locations for
the compiler so why should cmake care in any way?</blockquote></div><div><br>->
because Eclipse also doesn't care about the compiler, Eclipse only call
makefiles. Again, this is not a compiler issue, this is a project
setting issue. And since my project file is _generated by cmake_, I
thought this feature will be simple to point to there standard
locations. (which is done within a cmake gcc-mingw eclipse project I
believe)<br>
</div><div class="Ih2E3d"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
And as before - I've more than one compiler on my system...<br></blockquote></div><div><br>I also have more than one compiler working on my system but I fail to see how this is related to this issue. <br><br>CMake
doesn't care about these standard locations, and Eclipse also do
--> I'll just add a if(WIN32) followed by an include_directories(),
this is not a big deal.<br>
<br>--<br>Mehdi</div>