[cmake-developers] Bug#376587: cmake: .F90 files are not recognized as a fortran files

Warren Turkal wt at pyrus.biocycle.atmos.colostate.edu
Mon Jul 3 16:31:28 EDT 2006


Package: cmake
Version: 2.4.2-1
Severity: normal

Cmake doesn't seem to recognize .F90 as a fortran source extension.

CMakeLists.txt:
PROJECT(SiB Fortran)

ADD_EXECUTABLE(sib zenith.F90)

cmake output:
wt at pyrus:~/src/sib3-build$ cmake ../sib3
-- Check for working Fortran compiler: /usr/bin/gfortran-4.1
-- Check for working Fortran compiler: /usr/bin/gfortran-4.1 -- works
-- Checking whether /usr/bin/gfortran-4.1 supports Fortran 90
-- Checking whether /usr/bin/gfortran-4.1 supports Fortran 90 -- yes
-- Configuring done
CMake Error: Cannot determine link language for target "sib".
-- Generating done
-- Build files have been written to: /home/wt/src/sib3-build
wt at pyrus:~/src/sib3-build$

If I copy zenith.F90 to zenith.f90 and change the ADD_EXECUTABLE line in
CMakeLists.txt to match, Cmake will successfully complete.

BTW, .F90 are fortran source files that have to be run through the CPP
before being compiled.

Thanks,
wt

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages cmake depends on:
ii  emacsen-common                1.4.17     Common facilities for all emacsen
ii  libc6                         2.3.6-15   GNU C Library: Shared libraries
ii  libgcc1                       1:4.1.1-5  GCC support library
ii  libncurses5                   5.5-2      Shared libraries for terminal hand
ii  libstdc++6                    4.1.1-5    The GNU Standard C++ Library v3

Versions of packages cmake recommends:
pn  emacs21 | xemacs21 | emacsen  <none>     (no description available)

-- no debconf information



More information about the cmake-developers mailing list