[CMake] Re: -G KDevelop3 and Fortran

Alexander Neundorf a.neundorf-work at gmx.net
Fri Aug 31 11:19:52 EDT 2007


Hi,

On Friday 31 August 2007 09:22, Alin M Elena wrote:
> Hi Andreas,
>
>     What do you mean with disaster? All I can see is that the primary
>     language element is wrong, which can be easily corrected, just replace
>     "C++" with Fortran77 (not sure wether different values work as well).
>
>
>     Does the project build? I've seen some cmake macro for setting the
>     language and would assume that CMake uses C/C++ as default unless you
>     set something different.
>
>     As you can see in the CMakeList.txt file that I attached to my previous
> email I set as language of the project Fortran (and only fortran). The
> generator when creates hello.kdevelop just ignores all the info about the
> compiler that you provide and sets it to some default values which happen
> to be C/C++. (Try setting a hello world cpp project and you will see that
> it works properly there).

Yes, I just tried it here. It loaded the project, did correct syntax 
highlighting and compiled.
It didn't set the correct language, it was still C++ instead of Fortran. I can 
fix that, no problem.

Andreas: is it possible to have both <kdevfortransupport> and <kdevcppsupport> 
in the same kdevelop project file ?
Should I set primarylanguage to Fortran if fortran is the only enabled 
language or also if fortran *and* C/C++ are enabled ?

Bye
Alex


More information about the CMake mailing list