View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0016012CMakeCMakepublic2016-03-10 20:352016-06-10 14:31
Reporterkarnmake 
Assigned ToKitware Robot 
PrioritylowSeveritytrivialReproducibilityalways
StatusclosedResolutionmoved 
Platformx86_64OSlinux mintOS Version17
Product VersionCMake 3.5 
Target VersionFixed in Version 
Summary0016012: CodeBlocks fortran project file contains <Option compiler="gcc"> instead of "gfortran"
DescriptionGenerated project by cmake -G"CodeBlocks - Unix Makefiles" creates project file with <Option compiler="gcc"> but should be <Option compiler="gfortran"> for fortran source files, otherwise codeblocks (version 16.01) cannot properly parse build log, apparently parser is selected by this option, because when I manually replace gcc -> gfortran, cobeblocks successfully parse build log and properly shows (file, line number) of any errors in fortran code.
Steps To Reproduce1. create simple fortran code main.f90:
 program hello
    print *, 'Hello World!'
 end program
2. create CMakeFile:
 project(FortranProject)
 cmake_minimum_required(VERSION 2.8)
 enable_language (Fortran)
 add_executable (fact main.f90)
3. mkdir build; cd build
4. generate codeblocks project file:
 cmake -G"CodeBlocks - Unix Makefiles" -D CMAKE_BUILD_TYPE=Release ..
5. look in FortranProject.cbp, all <Option compiler="gcc">
6. run codeblocksFotran v 1.3, File->Open - select FortranProject.cbp
7. build project - works fine
8. make simple error in fortran source: replace print -> printx
9. build project
10. you can see that there is problem in Build messages window, but file name and line number is missing, so IDE doesn't show where the problem is
11. manually replace in Option compiler="gcc"->"gfortran" in project file FortranProject.cbp, restart IDE and repeat steps 8,9 now after build IDE shows where the problem is.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0042963)
Kitware Robot (administrator)
2016-06-10 14:29

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2016-03-10 20:35 karnmake New Issue
2016-06-10 14:29 Kitware Robot Note Added: 0042963
2016-06-10 14:29 Kitware Robot Status new => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:29 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team