MantisBT - CMake
View Issue Details
0013475CMakeCMakepublic2012-08-15 16:192012-08-15 16:32
Marcin Wojdyr 
 
normalfeatureN/A
closedduplicate 
CMake 2.8.9 
 
0013475: Support cross-compiling fortran project in the same way as C and C++
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.
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.
No tags attached.
duplicate of 0013379closed Alex Neundorf Toolchain prefix not set correctly for Fortran projects 
Issue History
2012-08-15 16:19Marcin WojdyrNew Issue
2012-08-15 16:31Alex NeundorfRelationship addedduplicate of 0013379
2012-08-15 16:32Alex NeundorfNote Added: 0030678
2012-08-15 16:32Alex NeundorfStatusnew => closed
2012-08-15 16:32Alex NeundorfResolutionopen => duplicate

Notes
(0030678)
Alex Neundorf   
2012-08-15 16:32   
There is already a ticket for this issue, see 0013379 . Please "Monitor" that one.