MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0013038 | CMake | CMake | public | 2012-03-12 13:04 | 2012-09-03 16:00 |
Reporter | Marcin Wojdyr | ||||
Assigned To | Brad King | ||||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | OS | Linux | OS Version | ||
Product Version | CMake 2.8.7 | ||||
Target Version | Fixed in Version | ||||
Summary | 0013038: cannot set CMAKE_AR when cross-compiling Fortran-only project | ||||
Description | I'm trying to cross-compile LAPACK 3.4.0 on Fedora using MinGW cross-compiler. Binutils paths are not set correctly. The CMAKE_AR in cache file is set to /usr/bin/ar, even if I explicitly set in toolchain file SET(CMAKE_AR:FILEPATH /usr/bin/i686-pc-mingw32-ar) or SET(CMAKE_AR /usr/bin/i686-pc-mingw32-ar) The only way to have the paths set correctly is to do: SET(_CMAKE_TOOLCHAIN_PREFIX i686-pc-mingw32-) but this is cmake internal variable. I don't know cmake well, so I may be wrong, but I'd suppose there are two issues here. 1. _CMAKE_TOOLCHAIN_PREFIX is set in CMakeDetermineCCompiler and CMakeDetermineCXXCompiler.cmake, but not in CMakeDetermineFortranCompiler. Most of Fortran projects use also C, so it is set anyway, but LAPACK has only Fortran. 2. CMAKE_AR and CMAKE_RANLIB set explicitly are not respected. Last note: it used to work, I cross-compiled this or previous lapack version with cmake 2.8.5 or 6. | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2012-03-12 13:04 | Marcin Wojdyr | New Issue | |||
2012-03-12 15:24 | Brad King | Note Added: 0028897 | |||
2012-03-12 16:15 | Marcin Wojdyr | Note Added: 0028898 | |||
2012-03-12 16:20 | Brad King | Note Added: 0028899 | |||
2012-03-12 16:20 | Brad King | Status | new => resolved | ||
2012-03-12 16:20 | Brad King | Resolution | open => no change required | ||
2012-03-12 16:20 | Brad King | Assigned To | => Brad King | ||
2012-09-03 16:00 | David Cole | Note Added: 0030835 | |||
2012-09-03 16:00 | David Cole | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|