Just to be explicit, CC and CXX are shell variables that CMake reads. So invoke like below to make for sure they are getting set correctly:<div><br></div><div>export CC=icc; export CXX=icc; cmake <args></div><div><br></div><div>Caleb<br><br>On Sunday, May 10, 2015, Rahul K Soni <<a href="javascript:_e(%7B%7D,'cvml','rahul@ismu.ac.in');" target="_blank">rahul@ismu.ac.in</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>When I run like that it says CC=icc command not found. </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 11:06 PM, Tom Kacvinsky <span dir="ltr"><<a>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"><br><br><br><br>> On May 10, 2015, at 13:16, Rahul K Soni <<a>rahul@ismu.ac.in</a>> wrote:
<br>> 
<br>> Hi Petr
<br>> 
<br>> Is deleting the buildsysystem means deleting the CMakeCache.txt file. How to set CC and CXX before configuring. 
<br>> 
<br>> Thanks a lot in advance. 
<br><br>Shoot, I had top posted.   Yes, you need to delete the bus directory as cmake caches settings after the initial run.  Once the build directory is deleted, you need to run cmake as follows:
<br><br>CC=icc CXX=icpc cmake <options>
<br><br></blockquote></div><br></blockquote></div>
<br><br>-- <br>Sent from my iPhone 4s<br>