Commit a1269502 authored by Thomas Fetzer's avatar Thomas Fetzer
Browse files

[gnuplot]

fixed definition of the HAVE_GNUPLOT macro

reviewed by nicolas


git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@15024 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent 5b3969bb
......@@ -3,4 +3,5 @@ include(CheckConstexpr)
# additional macros
include(DumuxTestMacros)
find_package(Gnuplot)
\ No newline at end of file
find_package(Gnuplot)
set(HAVE_GNUPLOT ${GNUPLOT_FOUND})
......@@ -40,7 +40,7 @@
#endif
/* Define to 1 if gnuplot was found */
#define HAVE_GNUPLOT @GNUPLOT_FOUND@
#cmakedefine HAVE_GNUPLOT 1
/* Define path to gnuplot executable */
#cmakedefine GNUPLOT_EXECUTABLE "@GNUPLOT_EXECUTABLE@"
......
......@@ -29,14 +29,14 @@
* a new GnuplotInterface object has to be created for each plot
*/
#ifndef DUMUX_GNUPLOT_INTERFACE_HH
#define DUMUX_GNUPLOT_INTERFACE_HH
#if !HAVE_GNUPLOT
#warning Gnuplot has not been found by CMake, no output possible.
#define GNUPLOT_EXECUTABLE "/usr/bin/gnuplot"
#endif
#ifndef DUMUX_GNUPLOT_INTERFACE_HH
#define DUMUX_GNUPLOT_INTERFACE_HH
#include <cassert>
#include <cmath>
#include <fstream>
......@@ -45,6 +45,7 @@
#include <string>
#include <vector>
#include <dune/common/deprecated.hh>
#include <dune/common/stdstreams.hh>
namespace Dumux
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment