summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b92f7e5)
Need f2c.h to compile.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8611
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
+#--------------------------------------------------------------------------------------------------
+### Initialize of Smpi
+
+if(enable_smpi)
+ include(FindF2c)
+ if(HAVE_F2C_H)
+ string(REGEX MATCH "-I${HAVE_F2C_H} " operation "${CMAKE_C_FLAGS}")
+ if(NOT operation)
+ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}-I${HAVE_F2C_H} ")
+ endif(NOT operation)
+ else(HAVE_F2C_H)
+ message("-- Smpi Need \"f2c.h\".")
+ message("-- Please install f2c before use smpi or set LD_LIBRARY_PATH to \"f2c.h\".")
+ message(FATAL_ERROR "SMPI DEPENDENCIES")
+ endif(HAVE_F2C_H)
+endif(enable_smpi)
+
#--------------------------------------------------------------------------------------------------
### Initialize of CONTEXT JAVA
#--------------------------------------------------------------------------------------------------
### Initialize of CONTEXT JAVA
--- /dev/null
+find_path(HAVE_F2C_H f2c.h
+ HINTS
+ $ENV{LD_LIBRARY_PATH}
+ PATH_SUFFIXES include/
+ PATHS
+ /opt
+ /opt/local
+ /opt/csw
+ /sw
+ /usr
+)
+
+find_program(F2C_EXE
+ NAME f2c
+ PATH_SUFFIXES bin/
+ PATHS
+ /opt
+ /opt/local
+ /opt/csw
+ /sw
+ /usr
+)
+
+find_library(HAVE_F2C_LIB
+ NAME f2c
+ HINTS
+ $ENV{LD_LIBRARY_PATH}
+ PATH_SUFFIXES lib/
+ PATHS
+ /opt
+ /opt/local
+ /opt/csw
+ /sw
+ /usr
+)
+
+mark_as_advanced(HAVE_F2C_H)
+mark_as_advanced(F2C_EXE)
+mark_as_advanced(HAVE_F2C_LIB)
\ No newline at end of file
message("PATH_LIBPCRE : ${PATHLIBPCRE}")
message("PATH_PCRE_H : ${PATH_PCRE_H}")
endif(HAVE_PCRE_LIB)
message("PATH_LIBPCRE : ${PATHLIBPCRE}")
message("PATH_PCRE_H : ${PATH_PCRE_H}")
endif(HAVE_PCRE_LIB)
+ if(enable_smpi)
+ message("")
+ message("HAVE_F2C_H : ${HAVE_F2C_H}")
+ message("F2C_EXE : ${F2C_EXE}")
+ message("HAVE_F2C_LIB : ${HAVE_F2C_LIB}")
+ endif(enable_smpi)
message("")
message("LIB_EXE : ${LIB_EXE}")
message("________________________________________________________________________________")
message("")
message("LIB_EXE : ${LIB_EXE}")
message("________________________________________________________________________________")