View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014358CMakeModulespublic2013-08-14 18:142014-02-10 10:44
ReporterMichel Zou 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake 2.8.11.2 
Target VersionCMake 3.0Fixed in VersionCMake 3.0 
Summary0014358: FortranCInterface fails to find generated test program when cross-compiling
DescriptionHere is the initial bugreport on the mailing list left with no reply:
http://www.cmake.org/pipermail/cmake/2012-March/049459.html [^]
Steps To ReproduceUse 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 InformationSee the attached patch proposed in the thread against current master.
Tested with and without cross-compilation on Linux.

TagsNo tags attached.
Attached Filespatch file icon cmake-fortrancinterface-cross-compilation.patch [^] (575 bytes) 2013-08-14 18:14 [Show Content]

 Relationships

  Notes
(0033720)
Brad King (manager)
2013-08-15 08:06

Applied, thanks:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=d7a65a2f [^]
(0035074)
Robert Maynard (manager)
2014-02-10 10:44

Closing resolved issues that have not been updated in more than 4 months.

 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
2013-08-15 08:06 Brad King Note Added: 0033720
2013-08-15 08:06 Brad King Assigned To => Brad King
2013-08-15 08:06 Brad King Status new => resolved
2013-08-15 08:06 Brad King Resolution open => fixed
2013-08-15 08:06 Brad King Fixed in Version => CMake 3.0
2013-08-15 08:06 Brad King Target Version => CMake 3.0
2014-02-10 10:44 Robert Maynard Note Added: 0035074
2014-02-10 10:44 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team