Hi,
I see that there is a built-in FortranCInterface module that provides a lot
of useful information for calling Fortran from C and C++. However, is there
a module that does the opposite? Specifically, I need to check that the
Fortran compiler supports calling C routines. In our autoconf script we do
this by test linking a program like so:
AC_LINK_IFELSE(AC_LANG_PROGRAM([],[use iso_c_binding])],
[action-if-yes],[action-if-no])
which just attempts to compile and link a one line program "use
iso_c_binding".
I know I can simply recreate this in cmake, but if there is a module that
does it already, or if FortranCInterface does it already, I'd like to avoid
reinventing the wheel.
Is there something that does this?
--Jack
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake