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 ====================================================================== -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers