> 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
