cmake, fortran 2008, and .f08 file extension

前端 未结 1 1325
耶瑟儿~
耶瑟儿~ 2020-12-11 08:53

I am trying to configure a Fortran 2008 project to use CMake; the files in the project have the \".f08\" extension. However, I cannot get CMake to work even with a \"hello

相关标签:
1条回答
  • 2020-12-11 09:52

    If you need to specify Fortran files with unrecognized extensions, you can set the source file's LANGUAGE property, e.g.:

    set_source_files_properties(hello-world.f08 PROPERTIES LANGUAGE Fortran)
    
    0 讨论(0)
提交回复
热议问题