[vtkusers] Re: [CMake] ccmake . configure changes intel compiler selection from icc back to gcc! Why? Anyone know?

Brad King brad.king at kitware.com
Thu Jun 1 10:00:15 EDT 2006


Dan White wrote:
> Hi all,
> 
> Doing an OSX VTK build on intel core duo platform
> OSX10.4
> Cmake 2.4 patch2
> VTK CVS yesterday
> 
> trying to use intel compilers for OSX intel
> 
> ccmake . configure changes intel compiler selection from  icc back to  
> gcc!  Why? Anyone know?
> also it changes icpc back to g++
> 
> icc and icpc are both installed and seem to work from the command  line 
> in the terminal ok.
> 
> Why should ccmake . chose to ignore my compiler selection and change  
> them back to the gnu/apple compilers?
> An older version of cmake didnt seem to do this yesterday,
> but i figured i should use the newest version....

Once a compiler has been selected for a particular build tree it cannot 
be changed.  If you did an in-source build you will have to get a fresh 
checkout.  If you did an out-of-source build you will need a new build 
tree.  Then run

CC=icc CXX=icpc ccmake /path/to/VTK

-Brad



More information about the vtkusers mailing list