[cmake-developers] [CMake 0014358]: FortranCInterface fails to find generated test program when cross-compiling
Mantis Bug Tracker
mantis at public.kitware.com
Wed Aug 14 18:14:12 EDT 2013
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=14358
======================================================================
Reported By: Michel Zou
Assigned To:
======================================================================
Project: CMake
Issue ID: 14358
Category: Modules
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2013-08-14 18:14 EDT
Last Modified: 2013-08-14 18:14 EDT
======================================================================
Summary: FortranCInterface fails to find generated test
program when cross-compiling
Description:
Here is the initial bugreport on the mailing list left with no reply:
http://www.cmake.org/pipermail/cmake/2012-March/049459.html
Steps to Reproduce:
Use the FortranCInterface module AND use a fortran cross compiler:
in CMakeLists:
include ( FortranCInterface )
FortranCInterface_HEADER ( FortranCInterface.h )
in foo.h:
#include "FortranCInterface.h"
#define F77_FUNC(name,NAME) FortranCInterface_GLOBAL(name,NAME)
#define BAR_F77 F77_FUNC(bar,BAR)
void BAR_F77(int *x);
...
Additional Information:
See the attached patch proposed in the thread against current master.
Tested with and without cross-compilation on Linux.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2013-08-14 18:14 Michel Zou New Issue
2013-08-14 18:14 Michel Zou File Added:
cmake-fortrancinterface-cross-compilation.patch
======================================================================
More information about the cmake-developers
mailing list