In the toolchain settings ( Settings | Build, Execution, Deployment | Toolchain), switch to GDB in the Debugger field. To run and debug Fortran code, create a CMake Application configuration (go to Run | Edit Configurations, press and select CMake Application). Navigation actions: Go to Definition, Structure view, and Find UsagesĬode analysis: a set of useful code inspections to catch potential errors In addition to parsing and highlighting your Fortran code, the plugin provides other code insight features, such asĬode editing: Add Line Comment Ctrl+/, Code folding, Brace matching, and Formatting (currently available only for free source form files) To instruct CMake on where to find the Fortran compiler, set the FC or CMAKE_Fortran_COMPILER environment variable in your CMakeLists.txt (provide the full path to the compiler executable or only the compiler name in case the PATH variable is set accordingly). In CLion, go to Settings | Plugins, switch to Marketplace and type Fortran in the search field, then click Install in the plugin description dialog.Īlternatively, install the plugin directly from the Plugin Repository page.Ĭreate a new Fortran executable project ( File | New Project) or open an existing CMake-based Fortran project. You can use GNU Fortran compiler included in the GCC installation or another Fortran compilers of your choice. You can share your feedback or submit a request in the projects's GitHub tracker.įind a sample Fortran project build with CMake in this wiki. The Fortran plugin is currently under development. Application support is provided by CMake. The plugin provides language support and debugger for FORTRAN 77//2008. Intel Fortran Compiler, as part of Intel OneAPI HPC toolkit, is a group of Fortran compilers from Intel for Windows, macOS, and Linux. CLion supports Fortran via the Fortran plugin.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |