<div dir="ltr"><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif">I am very much thankful Cole, Gobbi, Wherry and Tom for your valuable suggestions. It worked like a charm with the following syntax:</div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif"><br></div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif"><font color="#41AD1C" style="font-family:Tahoma;text-align:-webkit-auto">[Inside Build Directory] > env CC=icc CXX=icpc ccmake [path-to-source-directory] -Wno-dev</font>  <br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">--<br><span style="color:rgb(51,51,51)"><span style="font-family:trebuchet ms,sans-serif"><span style="font-size:10pt">Sincerely</span></span></span><p style="margin-bottom:0in;margin-bottom:.0001pt;text-align:justify;line-height:normal"><a href="https://sites.google.com/site/rahuliitdhn/" target="_blank"><span style="color:rgb(51,51,51)"><span style="font-family:trebuchet ms,sans-serif"><span style="font-size:10pt">Rahul Kumar Soni</span></span></span></a></p><span style="color:rgb(51,51,51)"><span style="font-family:trebuchet ms,sans-serif">Scientist, Institute of <span></span>Minerals & Materials Technology<br>Council of Scientific & Industrial Research, Govt. of India</span></span><br><font style="font-family:arial,helvetica,sans-serif" face="'times new roman', serif"><br><br></font></div></div></div></div></div>
<br><div class="gmail_quote">On Mon, May 11, 2015 at 12:28 AM, David Cole <span dir="ltr"><<a href="mailto:DLRdave@aol.com" target="_blank">DLRdave@aol.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">And if icc is not in the path, or in a standard location that CMake looks in, you should specify the full path. i.e. export CC=/usr/bin/icc ...<div class="HOEnZb"><div class="h5"><div><br><br>On Sunday, May 10, 2015, J. Caleb Wherry <<a href="mailto:calebwherry@gmail.com" target="_blank">calebwherry@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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>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>
</blockquote></div>
</div></div></blockquote></div><br></div>