[Cmake] Using CMake for scientific computing ?

Andy Cedilnik andy.cedilnik at kitware.com
Wed Mar 12 16:05:27 EST 2003


Hi Christophe,

For start, look at my comment in FAQ 5.1. There is example for latex.
For Fortran it will be similar, unfortunately you will have to know
Fortran flags.

On Wed, 2003-03-12 at 15:51, Christophe Dupre wrote:
> > CMake does not have direct support for Fortran, but if you know the
> > syntax of Fortran compiler, you can make it. For example, I added
> > support for Java and LaTeX like that. If you want, I can demonstrate
> > that.
> 
> Yes, some pointers would be appreciated. The second part is not important
> as long as Fortran doesn't work :-)

> > Do you want to do that during compiling?
> > You can set CMake options during configure step. This is how we do it
> > for example in VTK. VTK can be build using MPI and you select that while
> > configuring VTK.
> 
> At the compilation step, the developper should know which implementation
> of MPI he wants to use. But I don't want him to have to know the exact
> path where MPI is located, or what CFLAGS/LDFLAGS/libraries are needed to
> compile with MPI. Right now we don't use mpicc/etc, we call the compilers
> directly.

In VTK we search for MPI on common locations. The user who wants to
build it does not need to know about MPI. Unfortunately, somebody has to
type mpi flags there. You can guesstimate the flags and write them in
the CMake files. 

			Andy




More information about the CMake mailing list