[CMake] Changing the compiler in CMakeLists

William A. Hoffman billlist at nycap.rr.com
Thu Jul 14 11:04:30 EDT 2005


There are two options:

1. compile ITK and VTK with mpiCC
2. don't use mpiCC, but rather use the flags for mpi in cmake like we do with ParaView
and VTK built with parallel.

-Bill


At 11:00 AM 7/14/2005, Andriy Fedorov wrote:
>Hi,
>
>I have a project which is using ITK and VTK compiled with gcc, but I want to buld the executable with mpiCC. mpiCC is basically a wrapper around gcc, which adds some paths and libraries. What I do now is I change the compiler manually in CMakeCCompiler.cmake and CMakeCXXCompiler.cmake, but I am sure this is not the right way to do it. I tried to set CMAKE_C_COMPILER in CMakeLists.txt, but CMake enforces gcc from ITK. Does anyone know how to do this right?
>Thank you
>
>Andriy Fedorov
>_______________________________________________
>CMake mailing list
>CMake at cmake.org
>http://www.cmake.org/mailman/listinfo/cmake



More information about the CMake mailing list