mark_as_advanced(F2C_EXE)
mark_as_advanced(HAVE_F2C_LIB)
mark_as_advanced(F2C_EXE)
mark_as_advanced(HAVE_F2C_LIB)
+if(HAVE_F2C_LIB)
+ get_filename_component(F2C_LIBRARY_PATH "${HAVE_F2C_LIB}" PATH)
+ file(TO_NATIVE_PATH "${F2C_LIBRARY_PATH}" F2C_LIBRARY_PATH)
+endif()
+
#Some old versions of 64 bits systems seem to have a different size between C and Fortran Datatypes
#Deactivate F2C with these versions, in order to avoid breaking test cases in legacy systems (as Fedora 13)
set(COMPILER_OK 1)
#Some old versions of 64 bits systems seem to have a different size between C and Fortran Datatypes
#Deactivate F2C with these versions, in order to avoid breaking test cases in legacy systems (as Fedora 13)
set(COMPILER_OK 1)
prefix="@exec_prefix@"
ARGS="-DMAIN__=user_main -Diargc_=smpi_process_argc -Dgetarg_=smpi_process_getarg"
prefix="@exec_prefix@"
ARGS="-DMAIN__=user_main -Diargc_=smpi_process_argc -Dgetarg_=smpi_process_getarg"
+LINKARGS="-L@F2C_LIBRARY_PATH@ -lf2c -lm"
declare -a SRCFILES
# $1: prefix, $2: suffix
declare -a SRCFILES
# $1: prefix, $2: suffix