<div class="Ih2E3d">On Wed, Jun 18, 2008 at 10:43 AM, Christian Ehrlicher &lt;<a href="mailto:Ch.Ehrlicher@gmx.de" target="_blank">Ch.Ehrlicher@gmx.de</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

&gt; Von: &quot;Mehdi Rabah&quot;<br>
<div><div>&gt; On Tue, Jun 17, 2008 at 9:24 PM, Christian Ehrlicher &lt;<a href="mailto:Ch.Ehrlicher@gmx.de" target="_blank">Ch.Ehrlicher@gmx.de</a>&gt;<br>
&gt; wrote:<br>
&gt;<br>
&gt; &gt; Bill Hoffman schrieb:<br>
&gt; &gt;<br>
&gt; &gt;&gt; Alexander Neundorf wrote:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;&gt; On Tuesday 17 June 2008, Christian Ehrlicher wrote:<br>
&gt; &gt;&gt;&gt; ...<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; How do you define which vsvars32.bat (or vsvars64.bat) to use? I&#39;ve<br>
&gt; more<br>
&gt; &gt;&gt;&gt;&gt; than one compiler on my system...<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; The first time you would have to run cmake in the right environment<br>
&gt; (i.e.<br>
&gt; &gt;&gt;&gt; where the correct vcvars.bat has been executed).<br>
&gt; &gt;&gt;&gt; But I don&#39;t have a windows here, so I am not the best person for<br>
&gt; this...<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt; I realize some people get confused by this. &nbsp;However, I don&#39;t think it<br>
&gt; is<br>
&gt; &gt;&gt; too much to ask that you have a correct environment setup for using the<br>
&gt; &gt;&gt; compiler. &nbsp;We ask no less on Linux/Unix. &nbsp;If gcc is incorrectly<br>
&gt; installed,<br>
&gt; &gt;&gt; and can&#39;t find headers, we don&#39;t try and add -I stuff to fix the<br>
&gt; problem...<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; &nbsp;That&#39;s my opinion too - I don&#39;t see the point why it should be so hard<br>
&gt; to<br>
&gt; &gt; set up the correct environment so that it must be done by cmake.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; The point is not to setup the compiler, it is to have cmake include path<br>
&gt; pointing to standard locations. For example where STL header are<br>
&gt; (like/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/include on<br>
&gt; linux), to avoid extra configurations step in the IDE, not for the<br>
&gt; compiler.<br>
&gt; I talk especially about Eclipse CDT, in which STL automatic completion<br>
&gt; work<br>
&gt; 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&#39;re standard locations for
the compiler so why should cmake care in any way?</blockquote></div><div><br>-&gt;
because Eclipse also doesn&#39;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>
&nbsp;</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&#39;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&#39;t care about these standard locations, and Eclipse also do
--&gt;&nbsp; I&#39;ll just add a if(WIN32) followed by an include_directories(),
this is not a big deal.<br>
<br>--<br>Mehdi</div>