The following issue has been SUBMITTED. 
====================================================================== 
https://public.kitware.com/Bug/view.php?id=16012 
====================================================================== 
Reported By:                karnmake
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   16012
Category:                   CMake
Reproducibility:            always
Severity:                   trivial
Priority:                   low
Status:                     new
====================================================================== 
Date Submitted:             2016-03-10 20:35 EST
Last Modified:              2016-03-10 20:35 EST
====================================================================== 
Summary:                    CodeBlocks fortran project file contains <Option
compiler="gcc"> instead of "gfortran"
Description: 
Generated 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 Reproduce: 
1. 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.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2016-03-10 20:35 karnmake       New Issue                                    
======================================================================

-- 

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://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to