| View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0006930 | CMake | CMake | public | 2008-05-01 09:33 | 2008-05-01 09:49 | ||||
| Reporter | Christian Convey | ||||||||
| Assigned To | |||||||||
| Priority | normal | Severity | major | Reproducibility | always | ||||
| Status | closed | Resolution | fixed | ||||||
| Platform | OS | OS Version | |||||||
| Product Version | CMake-2-6 | ||||||||
| Target Version | Fixed in Version | CMake-2-6 | |||||||
| Summary | 0006930: (2.4-8) Fortran comments the text 'use' cause false dependency | ||||||||
| Description | Apparently "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 | ||||||||
| Tags | No tags attached. | ||||||||
| Attached Files | |||||||||
| Relationships | |
| 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 |
| Notes |
| 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 |
| Issue History |
| Copyright © 2000 - 2018 MantisBT Team |