View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006930CMakeCMakepublic2008-05-01 09:332008-05-01 09:49
ReporterChristian Convey 
Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-6 
Target VersionFixed in VersionCMake-2-6 
Summary0006930: (2.4-8) Fortran comments the text 'use' cause false dependency
DescriptionApparently "use" is a keyword in some version(s) of fortran. I'm using F77 code, but I suspect this is a bug for all versions of fortran:

I've created a trivial test case with one fortran file and one cmakelists.txt file:

foo.f has these 3 lines:
       SUBROUTINE FOO( X )
C USE BLAH.
       END


CMakeLists.txt has these 3 lines:
PROJECT(CASS_BISTATIC Fortran)
FILE(GLOB SRC foo.f)
bistatic STATIC ${SRC})

Running 'cmake' has no problem. But when I then run 'make', I get this output:

cjc@cjc-aleph:~/cppcass/trunk/cass-4.1-fortran/bistatic$ make
Scanning dependencies of target cass_bistatic
make[2]: *** No rule to make target `BLAH..mod.proxy', needed by `CMakeFiles/cass_bistatic.dir/foo.o.requires'. Stop.
make[1]: *** [CMakeFiles/cass_bistatic.dir/all] Error 2
make: *** [all] Error 2
TagsNo tags attached.
Attached Filestxt file icon CMakeLists.txt [^] (95 bytes) 2008-05-01 09:33 [Show Content]
? file icon foo.f [^] (59 bytes) 2008-05-01 09:34
? file icon CMakeLists.txt-corrected [^] (94 bytes) 2008-05-01 09:37

 Relationships

  Notes
(0011642)
Christian Convey (reporter)
2008-05-01 09:36

I accidentally provided a wrong version of the CMakeLists.txt file. I'm attaching the correct version. It's content is this:

PROJECT(CASS_BISTATIC Fortran)
FILE(GLOB SRC foo.f)

ADD_LIBRARY(cass_bistatic STATIC ${SRC})
(0011643)
Bill Hoffman (manager)
2008-05-01 09:49

This is fixed in CMake 2.6

 Issue History
Date Modified Username Field Change
2008-05-01 09:33 Christian Convey New Issue
2008-05-01 09:33 Christian Convey File Added: CMakeLists.txt
2008-05-01 09:34 Christian Convey File Added: foo.f
2008-05-01 09:36 Christian Convey Note Added: 0011642
2008-05-01 09:37 Christian Convey File Added: CMakeLists.txt-corrected
2008-05-01 09:49 Bill Hoffman Status new => closed
2008-05-01 09:49 Bill Hoffman Note Added: 0011643
2008-05-01 09:49 Bill Hoffman Resolution open => fixed
2008-05-01 09:49 Bill Hoffman Fixed in Version => CMake-2-6


Copyright © 2000 - 2018 MantisBT Team