[CMake] support for .f03/.F03 suffix (Fortran 2003)

Radovan Bast radovan.bast at gmail.com
Thu Aug 1 02:47:16 EDT 2013


thank you Zaak!
you are right, after some more reading on this issue i should stick to .f90
as you suggest.
thank you for the clarification.
best regards,
  radovan


On Wed, Jul 31, 2013 at 10:44 PM, Zaak Beekman <zbeekman at gmail.com> wrote:

>
> dear all,
>>
>> it seems that CMake currently does not support .f03/.F03 suffix
>> for Fortran 2003 files.
>>
>> is there a way for me to tell CMake to treat these files as it would treat
>> files ending with .f90 or .f95. i can then assign special flags to them
>> via
>> source file
>> properties.
>>
>> thank you in advance & best regards,
>>   radovan
>>
>
> Radovan,
> I'm curious why you want to use .f03 or .f08 extensions. Some
> compilers--like Intel's--explicitly forbid this. For portability I would
> recommend sticking with the .f90 suffix.
>
> I suspect you can adjust the following variable to implement a work
> around, although I am a CMake newbie and have not tried it myself:
> CMAKE_Fortran_SOURCE_FILE_EXTENSIONS [
> http://www.cmake.org/cmake/help/v2.8.8/cmake.html#variable:CMAKE_LANG_SOURCE_FILE_EXTENSIONS
> ]
>
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130801/44deda38/attachment-0001.htm>


More information about the CMake mailing list