MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0010329 | CMake | CMake | public | 2010-02-24 13:27 | 2016-06-10 14:31 |
| Reporter | Brian Bassett | ||||
| Assigned To | Bill Hoffman | ||||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | OS | OS Version | |||
| Product Version | CMake-2-8 | ||||
| Target Version | Fixed in Version | ||||
| Summary | 0010329: Visual Studio 2008 does not build Fortan objects for mixed-language targets | ||||
| Description | Given a simple listfile with a target that contains both Fortran and C (or C++) sources: project(MixedFortran) cmake_minimum_required(VERSION 2.8) enable_language(Fortran) add_executable(MixedFortran main.c fortran.f) The Visual Studio 2008 generator outputs the following into MixedFortran.vcproj: <File RelativePath="Z:\src\snext\test\MixedFortran\fortran.f"> </File> Visual Studio does not understand how to compile Fortran sources found in a .vcproj. CMake should instead create a MixedFortran.vfproj file containing the Fortran sources. This vfproj should probably be a static library, which should be linked into the MixedFortran target. This listfile works as expected when using the NMake or Unix makefile generators. Only the Visual Studio generators are affected. | ||||
| Steps To Reproduce | |||||
| Additional Information | Environment consists of: CMake 2.8.0 Visual Studio 2008 Intel Visual Fortran 11.1.054 Attached files: MixedFortran.zip: The source tree VisualStudio.zip: The out-of-source binary build tree generated with cmake-gui, the "Visual Studio 9 2008" generator, and default compilers. Includes build log for the Debug configuration. | ||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | https://public.kitware.com/Bug/file/2898/MixedFortran.zip https://public.kitware.com/Bug/file/2900/VisualStudio.zip https://public.kitware.com/Bug/file/3176/vs_mixedfortran.v2.patch | ||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2010-02-24 13:27 | Brian Bassett | New Issue | |||
| 2010-02-24 13:27 | Brian Bassett | File Added: MixedFortran.zip | |||
| 2010-02-24 21:11 | Brian Bassett | File Added: VisualStudio.zip | |||
| 2010-02-25 09:40 | Bill Hoffman | Note Added: 0019617 | |||
| 2010-02-25 09:40 | Bill Hoffman | Status | new => assigned | ||
| 2010-02-25 09:40 | Bill Hoffman | Assigned To | => Bill Hoffman | ||
| 2010-02-25 19:51 | Brian Bassett | Note Added: 0019638 | |||
| 2010-06-08 22:59 | Brian Bassett | File Added: vs_mixedfortran.v2.patch | |||
| 2010-06-08 22:59 | Brian Bassett | Note Added: 0020949 | |||
| 2016-06-10 14:27 | Kitware Robot | Note Added: 0041656 | |||
| 2016-06-10 14:27 | Kitware Robot | Status | assigned => resolved | ||
| 2016-06-10 14:27 | Kitware Robot | Resolution | open => moved | ||
| 2016-06-10 14:31 | Kitware Robot | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||