<div>Hi Petr</div>
<div><br></div>
<div>Is deleting the buildsysystem means deleting the CMakeCache.txt file. How to set CC and CXX before configuring. </div>
<div><br></div>
<div>Thanks a lot in advance. </div>
<div class="mailbox_signature">
<br>—<br>Rahul Kumar Soni<br>Scientist<div>CSIR-IMMT</div>
<div>
<br>Sent from iPad Rahul</div>
</div>
<br><br><div class="gmail_quote"><p>On Sun, May 10, 2015 at 10:32 PM, Petr Kmoch <span dir="ltr"><<a href="mailto:petr.kmoch@gmail.com" target="_blank">petr.kmoch@gmail.com</a>></span> wrote:<br></p><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>
<div dir="ltr">
<div>And you need to do with in a *totally clean* binary directory. The compiler cannot be changed once the buildsystem has been configured at least once. Simply delete the buildsystem and start over, with the proper CC (and CXX) environment variable(s).<br><br></div>Petr<br></div>
<div class="gmail_extra">
<br><div class="gmail_quote">On Sun, May 10, 2015 at 7:00 PM, Tom Kacvinsky <span dir="ltr"><<a href="mailto:tom.kacvinsky@vectorcast.com">tom.kacvinsky@vectorcast.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="auto">
<div>You need to set CC before invoking cmake so that cmake will know to use the Intel compilers<br><br><div><br></div>
</div>
<div><div class="h5">
<div>
<br>On May 10, 2015, at 12:57, Rahul K Soni <<a href="mailto:rahul@ismu.ac.in">rahul@ismu.ac.in</a>> wrote:<br><br></div>
<blockquote type="cite"><div>
<div>No Tom, thats not working. </div>
<div><br></div>
<div>I did ccmake CC=icc /path/to/vtk</div>
<div><br></div>
<div>But the result is same. </div>
<div>
<br>—<br>Rahul Kumar Soni<br>Scientist<div>CSIR-IMMT</div>
<div>
<br>Sent from iPad Rahul</div>
</div>
<br><br><div class="gmail_quote">
<p>On Sun, May 10, 2015 at 10:04 PM, Tom Kacvinsky <span dir="ltr"><<a href="mailto:tom.kacvinsky@vectorcast.com">tom.kacvinsky@vectorcast.com</a>></span> wrote:<br></p>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p>CC=icc cmake <options> should do the trick
<br><br><br><br>> On May 10, 2015, at 12:18, Rahul K Soni <<a href="mailto:rahul@ismu.ac.in">rahul@ismu.ac.in</a>> wrote:
<br>> 
<br>> Hello everyone
<br>> 
<br>> I am trying to configure vtk with cmake-3.2.2 in suse-hpc cluster. Prefeerred compiler in that cluster is intel. But I don't know why when Cmake is always configuring things for gcc when it is having icc also.
<br>> 
<br>> Please help, how to switch the configuration to icc.
<br>> 
<br>> —
<br>> Rahul Kumar Soni
<br>> Scientist
<br>> CSIR-IMMT
<br>> 
<br>> Sent from iPad Rahul
<br>> -- 
<br>> 
<br>> Powered by <a href="http://www.kitware.com">www.kitware.com</a>
<br>> 
<br>> Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a>
<br>> 
<br>> Kitware offers various services to support the CMake community. For more information on each offering, please visit:
<br>> 
<br>> CMake Support: <a href="http://cmake.org/cmake/help/support.html">http://cmake.org/cmake/help/support.html</a>
<br>> CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html">http://cmake.org/cmake/help/consulting.html</a>
<br>> CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html">http://cmake.org/cmake/help/training.html</a>
<br>> 
<br>> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
<br>> 
<br>> Follow this link to subscribe/unsubscribe:
<br>> <a href="http://public.kitware.com/mailman/listinfo/cmake">http://public.kitware.com/mailman/listinfo/cmake</a>
<br></p></blockquote>
</div>
<br></div></blockquote>
</div></div>
</div>
<br>--<br><br>
Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a><br><br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br><br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html">http://cmake.org/cmake/help/training.html</a><br><br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>
Follow this link to subscribe/unsubscribe:<br><a href="http://public.kitware.com/mailman/listinfo/cmake">http://public.kitware.com/mailman/listinfo/cmake</a><br></blockquote>
</div>
<br></div>
</div></blockquote></div><br>