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
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to