View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013475CMakeCMakepublic2012-08-15 16:192012-08-15 16:32
ReporterMarcin Wojdyr 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusclosedResolutionduplicate 
PlatformOSOS Version
Product VersionCMake 2.8.9 
Target VersionFixed in Version 
Summary0013475: Support cross-compiling fortran project in the same way as C and C++
DescriptionCMakeDetermineFortranCompiler 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 InformationCMakeDetermine(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.
TagsNo tags attached.
Attached Files

 Relationships
duplicate of 0013379closedAlex Neundorf Toolchain prefix not set correctly for Fortran projects 

  Notes
(0030678)
Alex Neundorf (developer)
2012-08-15 16:32

There is already a ticket for this issue, see 0013379 . Please "Monitor" that one.

 Issue History
Date Modified Username Field Change
2012-08-15 16:19 Marcin Wojdyr New Issue
2012-08-15 16:31 Alex Neundorf Relationship added duplicate of 0013379
2012-08-15 16:32 Alex Neundorf Note Added: 0030678
2012-08-15 16:32 Alex Neundorf Status new => closed
2012-08-15 16:32 Alex Neundorf Resolution open => duplicate


Copyright © 2000 - 2018 MantisBT Team