Hello James,
I do not think this is going to work: object files created with g77
and gfortran are not compatible as far as I know.
What constructs are they? F90/95 has one or two deleted features
but most compilers will simply accept them, perhaps grudgingly.
Regards,
Arjen
On 2009-08-18 23:39, James C. Sutherland wrote:
Is there a way to detect and use both F77 and F90 compilers?
I have some legacy F77 code that uses constructs that have been
deprecated/removed in F90. I would like to compile those F77 files with
a F77 compiler, compile the F90 files with an F90 compiler, and then
link them with the F90 compiler.
How can this be done with CMake?
For example:
foo.f <-- F77 file
bar.f90 <-- F90 file
I want something equivalent to
g77 foo.f -o foo.o
gfotran bar.f90 foo.o -o executable.x
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake