Arjen Markus wrote:
> 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.
[snip]
>> 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

As Arjen asked, what is your actual use case?
What are the real compiler you're using (and versions)?
Does it work when invoking the compilers by hand?
Are there compatibility flags to the f90 compiler to tell
it to accept f77 constructs?

-Brad
_______________________________________________
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

Reply via email to