<br><br><div class="gmail_quote">On Wed, Oct 14, 2009 at 11:31 AM, Clinton Stimpson <span dir="ltr"><<a href="mailto:clinton@elemtech.com">clinton@elemtech.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
I've found there's an xcode setting for this, but CMake doesn't put it in the<br>
generated xcode project.<br>
There's already a thing in the bug tracker for this.<br>
That would be ideal, instead of a method that requires root access and changes<br>
every xcode session. <br></blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Thanks,<br>
Clint<br>
<br>
On Wednesday 14 October 2009 08:23:10 am Michael Jackson wrote:<br>
> Not sure how much of a help this is but I have the following in<br>
> my .bash_profile<br>
><br>
> function gcc_select()<br>
> {<br>
> echo "Changing GCC Version to $1"<br>
> cd /usr/bin<br>
> sudo ln -Fs c++-${1} c++<br>
> sudo ln -Fs gcc-${1} cc<br>
> sudo ln -Fs g++-${1} g++<br>
> sudo ln -Fs gcc-${1} gcc<br>
> sudo ln -Fs gcov-${1} gcov<br>
> }<br>
><br>
> #gcc_select 4.2<br>
> echo "Use 'gcc_select [4.0 | 4.2 ] to set GCC to your desired Version"<br>
><br>
> which lets me select which gcc gets used. I set this before I run any<br>
> CMake commands in a clean build directory and CMake seems to set the<br>
> correct GCC version in the Xcode projects. OS X 10.5.8 Intel.<br></blockquote><div><br>GCC does have the -V option that tells the compiler driver which version of the backend executables (cc1/...) to use.<br><br>--Lucas <br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
><br>
> _________________________________________________________<br>
> Mike Jackson <a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a><br>
> BlueQuartz Software <a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a><br>
> Principal Software Engineer Dayton, Ohio<br>
><br>
> On Oct 13, 2009, at 6:12 PM, Clinton Stimpson wrote:<br>
> > Hi,<br>
> ><br>
> > What's the right way to specify which gcc compiler to use with xcode/<br>
> > cmake ?<br>
> > It looks like if one specifies g++-4.0 in cmake-gui, xcode doesn't<br>
> > use that<br>
> > compiler.<br>
> ><br>
> > Clint<br>
> > _______________________________________________<br>
> > Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
> ><br>
> > Visit other Kitware open-source projects at<br>
> > <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
> ><br>
> > Please keep messages on-topic and check the CMake FAQ at:<br>
> > <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
> ><br>
> > Follow this link to subscribe/unsubscribe:<br>
> > <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br>