From efaa420b9308f3814c360660953650cf8e26d744 Mon Sep 17 00:00:00 2001 From: Gabriel Corona Date: Wed, 9 Mar 2016 11:10:06 +0100 Subject: [PATCH] Fix HAVE_GRAPHVIZ handling --- src/simdag/sd_dotloader.cpp | 3 ++- tools/cmake/src/internal_config.h.in | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/simdag/sd_dotloader.cpp b/src/simdag/sd_dotloader.cpp index 2a93172c58..8e97333978 100644 --- a/src/simdag/sd_dotloader.cpp +++ b/src/simdag/sd_dotloader.cpp @@ -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 #endif diff --git a/tools/cmake/src/internal_config.h.in b/tools/cmake/src/internal_config.h.in index e64a9210b7..3af7168159 100644 --- a/tools/cmake/src/internal_config.h.in +++ b/tools/cmake/src/internal_config.h.in @@ -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 */ -- 2.20.1