[CMake] gfortran

Bill Hoffman bill.hoffman at kitware.com
Wed Jan 23 15:18:22 EST 2008


Javier Gonzalez wrote:

>>
> I did it and it works (I removed the link just in case):
> 
> bash-3.2$ ls
> hello.f90
> bash-3.2$ cat hello.f90
> PROGRAM HelloWorld
>     WRITE(*,*)  "Hello World!"
> END PROGRAM
> bash-3.2$ gfortran -o hello hello.f90
> bash-3.2$ ./hello
> Hello World!
> bash-3.2$
> 
OK, next step same program in CMake.
CMakeLists.txt
project(hello Fortran)
add_executable(hello hello.f90)

cmake .
make VERBOSE=1


What do you get?  What is different about the link line?

-Bill


More information about the CMake mailing list