X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8f7873c57495707ccbdad488eab21356bf5496d7..581d3ff66af5e50bcb3c42b96fb9cad10c32d467:/buildtools/Cmake/Modules/FindGraphviz.cmake diff --git a/buildtools/Cmake/Modules/FindGraphviz.cmake b/buildtools/Cmake/Modules/FindGraphviz.cmake index ba664ae53e..f982b33e3c 100644 --- a/buildtools/Cmake/Modules/FindGraphviz.cmake +++ b/buildtools/Cmake/Modules/FindGraphviz.cmake @@ -126,20 +126,8 @@ if(HAVE_CGRAPH_LIB OR HAVE_AGRAPH_LIB) set(CGRAPH_H 1) endif(HAVE_CGRAPH_H) - string(REGEX MATCH "-I${file_graphviz_h} " operation "${CMAKE_C_FLAGS}") - if(NOT operation) - SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}-I${file_graphviz_h} ") - endif(NOT operation) - - string(REGEX MATCH "-I${file_graphviz_h}/graphviz " operation "${CMAKE_C_FLAGS}") - if(NOT operation) - SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}-I${file_graphviz_h}/graphviz ") - endif(NOT operation) - - string(REGEX MATCH "-L${lib_graphviz} " operation "${CMAKE_C_FLAGS}") - if(NOT operation) - SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}-L${lib_graphviz} ") - endif(NOT operation) + include_directories(${file_graphviz_h} ${file_graphviz_h}/graphviz) + link_directories(${lib_graphviz}) set(HAVE_GRAPHVIZ "1") else(HAVE_GRAPH_H OR HAVE_AGRAPH_H OR HAVE_CGRAPH_H) @@ -152,4 +140,53 @@ endif(HAVE_CGRAPH_LIB OR HAVE_AGRAPH_LIB) endif(HAVE_CDT_LIB) -mark_as_advanced(HAVE_GRAPHVIZ) \ No newline at end of file +mark_as_advanced(HAVE_GRAPHVIZ) + +message(STATUS "Looking for agraph.h") +if(HAVE_AGRAPH_H) +message(STATUS "Looking for agraph.h - found") +else(HAVE_AGRAPH_H) +message(STATUS "Looking for agraph.h - not found") +endif(HAVE_AGRAPH_H) + +message(STATUS "Looking for cgraph.h") +if(HAVE_CGRAPH_H) +message(STATUS "Looking for cgraph.h - found") +else(HAVE_CGRAPH_H) +message(STATUS "Looking for cgraph.h - not found") +endif(HAVE_CGRAPH_H) + +message(STATUS "Looking for graph.h") +if(HAVE_GRAPH_H) +message(STATUS "Looking for graph.h - found") +else(HAVE_GRAPH_H) +message(STATUS "Looking for graph.h - not found") +endif(HAVE_GRAPH_H) + +message(STATUS "Looking for lib agraph") +if(HAVE_AGRAPH_LIB) +message(STATUS "Looking for lib agraph - found") +else(HAVE_AGRAPH_LIB) +message(STATUS "Looking for lib agraph - not found") +endif(HAVE_AGRAPH_LIB) + +message(STATUS "Looking for lib cgraph") +if(HAVE_CGRAPH_LIB) +message(STATUS "Looking for lib cgraph - found") +else(HAVE_CGRAPH_LIB) +message(STATUS "Looking for lib cgraph - not found") +endif(HAVE_CGRAPH_LIB) + +message(STATUS "Looking for lib graph") +if(HAVE_GRAPH_LIB) +message(STATUS "Looking for lib graph - found") +else(HAVE_GRAPH_LIB) +message(STATUS "Looking for lib graph - not found") +endif(HAVE_GRAPH_LIB) + +message(STATUS "Looking for lib cdt") +if(HAVE_CDT_LIB) +message(STATUS "Looking for lib cdt - found") +else(HAVE_CDT_LIB) +message(STATUS "Looking for lib cdt - not found") +endif(HAVE_CDT_LIB) \ No newline at end of file