Re: [CMake] Switching configuration to icc

2015-05-11 Thread Rahul Kumar Soni
I am very much thankful Cole, Gobbi, Wherry and Tom for your valuable suggestions. It worked like a charm with the following syntax: [Inside Build Directory] > env CC=icc CXX=icpc ccmake [path-to-source-directory] -Wno-dev -- Sincerely Rahul Kumar Soni

Re: [CMake] Switching configuration to icc

2015-05-10 Thread David Cole via CMake
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 ... On Sunday, May 10, 2015, J. Caleb Wherry wrote: > Just to be explicit, CC and CXX are shell variables that CMake reads. So > invoke like below to make

[CMake] Switching configuration to icc

2015-05-10 Thread J. Caleb Wherry
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: export CC=icc; export CXX=icc; cmake Caleb On Sunday, May 10, 2015, Rahul K Soni > wrote: > When I run like that it says CC=icc command not found. > > --

Re: [CMake] Switching configuration to icc

2015-05-10 Thread Rahul K Soni
Its like a ssh remote control of cluster from putty.  — Rahul Kumar Soni ScientistCSIR-IMMT Sent from iPad Rahul On Sun, May 10, 2015 at 11:53 PM, Tom Kacvinsky wrote: >> On May 10, 2015, at 14:19, Rahul K Soni wrote: >> >> When I run like that it says CC=icc command not found. > Which

Re: [CMake] Switching configuration to icc

2015-05-10 Thread Rahul K Soni
When I run like that it says CC=icc command not found.  — Rahul Kumar Soni ScientistCSIR-IMMT Sent from iPad Rahul On Sun, May 10, 2015 at 11:06 PM, Tom Kacvinsky wrote: >> On May 10, 2015, at 13:16, Rahul K Soni wrote: >> >> Hi Petr >> >> Is deleting the buildsysystem means deleting th

Re: [CMake] Switching configuration to icc

2015-05-10 Thread Tom Kacvinsky
> On May 10, 2015, at 13:16, Rahul K Soni wrote: > > Hi Petr > > Is deleting the buildsysystem means deleting the CMakeCache.txt file. How to > set CC and CXX before configuring. > > Thanks a lot in advance. Shoot, I had top posted. Yes, you need to delete the bus directory as cmake

Re: [CMake] Switching configuration to icc

2015-05-10 Thread Rahul K Soni
Hi Petr Is deleting the buildsysystem means deleting the CMakeCache.txt file. How to set CC and CXX before configuring.  Thanks a lot in advance.  — Rahul Kumar Soni ScientistCSIR-IMMT Sent from iPad Rahul On Sun, May 10, 2015 at 10:32 PM, Petr Kmoch wrote: > And you need to do wi

Re: [CMake] Switching configuration to icc

2015-05-10 Thread Rahul K Soni
I am really sorry Tom. I am very new to all these things. Can you just exaplain in just one or two lines, how to do that.  I will really appreciate your help. I am struggling with all these from several days.  — Rahul Kumar Soni ScientistCSIR-IMMT Sent from iPad Rahul On Sun, May 10, 2

Re: [CMake] Switching configuration to icc

2015-05-10 Thread Petr Kmoch
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). Petr On Sun, May 10, 2015 at 7:00 PM, Tom Kacvi

Re: [CMake] Switching configuration to icc

2015-05-10 Thread Tom Kacvinsky
You need to set CC before invoking cmake so that cmake will know to use the Intel compilers > On May 10, 2015, at 12:57, Rahul K Soni wrote: > > No Tom, thats not working. > > I did ccmake CC=icc /path/to/vtk > > But the result is same. > > — > Rahul Kumar Soni > Scientist > CSIR-IMMT >

Re: [CMake] Switching configuration to icc

2015-05-10 Thread Rahul K Soni
No Tom, thats not working.  I did ccmake CC=icc /path/to/vtk But the result is same.  — Rahul Kumar Soni ScientistCSIR-IMMT Sent from iPad Rahul On Sun, May 10, 2015 at 10:04 PM, Tom Kacvinsky wrote: > CC=icc cmake should do the trick >> On May 10, 2015, at 12:18, Rahul K Soni wr

Re: [CMake] Switching configuration to icc

2015-05-10 Thread Tom Kacvinsky
CC=icc cmake should do the trick > On May 10, 2015, at 12:18, Rahul K Soni wrote: > > Hello everyone > > 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

[CMake] Switching configuration to icc

2015-05-10 Thread Rahul K Soni
Hello everyone 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. Please help, how to switch the configuration to icc. — Rahul Kumar