[vtkusers] help to change compiler

Mathieu Malaterre mathieu.malaterre at kitware.com
Thu Mar 9 08:49:30 EST 2006


Subir Singh Lamba wrote:
> Hi,
> I have to use Cmake to compile my program. The problem I am facing is to 
> how to change my compiler from gcc to mpicc. As I need to compile my 
> parallel code with it

Create a new directory, and inside that new empty dir, do:

export CC=mpicc
export CXX=mpic++
cmake /full/path/to/VTK

HTH
Mathieu



More information about the vtkusers mailing list