[vtkusers] Compiling vtk with icc

David Gobbi david.gobbi at gmail.com
Sun May 10 16:34:35 EDT 2015


Hi Rahul,

Probably the easiest way to choose a compiler is by setting environment
variables before running ccmake:

export CC=icc
export CXX=icpc

When changing compilers, it is best to delete your CMakeCache.txt file and
the entire build directory.

 - David

On Sun, May 10, 2015 at 5:08 AM, Rahul Kumar Soni <rahulsoni at immt.res.in>
wrote:

> Hello everyone
>
> I had a hard time in trying to compile VTK in SUSE-HPC cluster. When I do
> ccmake it always attempt to do everything with gcc compiler. I think the
> instructions are governed from the CMakeLists.txt file. But the cluster is
> having icc compiler. Is there anyway to compile it with the icc.
> --
> Sincerely
>
> Rahul Kumar Soni <https://sites.google.com/site/rahuliitdhn/>
> Scientist, Institute of Minerals & Materials Technology
> Council of Scientific & Industrial Research, Govt. of India
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150510/7cfb694e/attachment.html>


More information about the vtkusers mailing list