You have to wipe your binary directory and start completely fresh if you want to change the compiler... True for any project anywhere based on a CMake driven build, not just VTK.<br><br>HTH,<br>David<br><br><div><span class="gmail_quote">
On 11/30/06, <b class="gmail_sendername">Sean McBride</b> <<a href="mailto:sean@rogue-research.com">sean@rogue-research.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 2006-11-30 12:48, Corrie said:<br><br>>Now I'm really confused. I've tried to edit the CMAKE_CXX_COMPILER<br>>and CMAKE_C_COMPILER's in cmakecache.txt to g++-4.0 and gcc-4.0,<br>>respectively. Then, after I save the file and cmake it a couple of
<br>>times, it (cmakecache.txt) has reverted to having 3.3's in those<br>>fields. Any idea why CMake can't get this to change? I even tried<br>>putting "powerpc-apple-darwin8-gcc-4.0.1" in there and it still
<br>>reverted back to gcc-3.3 in the cmakecache.txt file. All this<br>>despite the fact when I ask gcc -v, I get "gcc version 4.0.1 (Apple<br>>Computer, Inc. build 5367)" in response. How can I exorcise this
<br>>ghost in the machine?<br><br>hmmm, sounds odd. I'm afraid I don't know much about CMake really.<br>I've never touched CMAKE_C_COMPILER nor CMAKE_CXX_COMPILER. It seems to<br>figure them out on its own. For me, the values are:
<br><br>CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++<br>CMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc<br><br>And /usr/bin/gcc is a symlink to whatever you choose with gcc_select.<br><br>--<br>____________________________________________________________
<br>Sean McBride, B. Eng <a href="mailto:sean@rogue-research.com">sean@rogue-research.com</a><br>Rogue Research <a href="http://www.rogue-research.com">www.rogue-research.com</a><br>
Mac Software Developer Montréal, Québec, Canada<br><br><br>_______________________________________________<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br></blockquote></div><br>