Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix HAVE_GRAPHVIZ handling
authorGabriel Corona <gabriel.corona@loria.fr>
Wed, 9 Mar 2016 10:10:06 +0000 (11:10 +0100)
committerGabriel Corona <gabriel.corona@loria.fr>
Wed, 9 Mar 2016 10:10:06 +0000 (11:10 +0100)
src/simdag/sd_dotloader.cpp
tools/cmake/src/internal_config.h.in

index 2a93172..8e97333 100644 (file)
@@ -4,6 +4,7 @@
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
+#include "src/internal_config.h"
 #include "src/simdag/simdag_private.h"
 #include "simgrid/simdag.h"
 #include "xbt/file.h"
@@ -11,7 +12,7 @@
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(sd_dotparse, sd, "Parsing DOT files");
 
-#ifdef HAVE_GRAPHVIZ
+#if HAVE_GRAPHVIZ
 #include <graphviz/cgraph.h>
 #endif
 
index e64a921..3af7168 100644 (file)
@@ -64,4 +64,4 @@
 
 /* Other checks */
 #cmakedefine ADDR2LINE       "@ADDR2LINE@" /* Path to the addr2line tool */
-#cmakedefine HAVE_GRAPHVIZ   @HAVE_GRAPHVIZ@ /* The graphviz library */
+#define HAVE_GRAPHVIZ   @HAVE_GRAPHVIZ@ /* The graphviz library */