| View Issue Details [ Jump to Notes ] | [ Print ] |
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0013475 | CMake | CMake | public | 2012-08-15 16:19 | 2012-08-15 16:32 |
|
| Reporter | Marcin Wojdyr | |
| Assigned To | | |
| Priority | normal | Severity | feature | Reproducibility | N/A |
| Status | closed | Resolution | duplicate | |
| Platform | | OS | | OS Version | |
| Product Version | CMake 2.8.9 | |
| Target Version | | Fixed in Version | | |
|
| Summary | 0013475: Support cross-compiling fortran project in the same way as C and C++ |
| Description | CMakeDetermineFortranCompiler lacks several lines that in similar modules for C and CXX handle GNU cross-compiler.
As a result changing order of languages in project() causes strange errors, and if Fortran is the first or the only language the instruction at http://www.cmake.org/Wiki/CMake_Cross_Compiling [^] won't work.
|
| Additional Information | CMakeDetermine(C|CXX|Fortran)Compiler.cmake files are quite similar. The Fortran one lacks comment about _CMAKE_TOOLCHAIN_PREFIX at the beginning and then block that sets _CMAKE_TOOLCHAIN_PREFIX near the end. I think that's all, but I may have overlooked something. When _CMAKE_TOOLCHAIN_PREFIX if set CMakeFindBinUtils sets the rest of variables. |
| Tags | No tags attached. |
|
| Attached Files | |
|