From 95183b5760d7f168ae093ae8f9b29740628a278f Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Tue, 3 Mar 2015 01:14:07 -0500 Subject: migration to cmake --- mteval/ns.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mteval/ns.cc') diff --git a/mteval/ns.cc b/mteval/ns.cc index 075e0121..2c8bd806 100644 --- a/mteval/ns.cc +++ b/mteval/ns.cc @@ -13,6 +13,8 @@ #include #include +#include "config.h" + #include "tdict.h" #include "filelib.h" #include "stringlib.h" @@ -272,14 +274,14 @@ EvaluationMetric* EvaluationMetric::Instance(const string& imetric_id) { } else if (metric_id == "TER") { m = new TERMetric; } else if (metric_id == "METEOR") { -#if HAVE_METEOR +#ifdef METEOR_JAR if (!FileExists(meteor_jar_path)) { cerr << meteor_jar_path << " not found!\n"; abort(); } m = new ExternalMetric("METEOR", string("java -Xmx1536m -jar ") + meteor_jar_path + " - - -mira -lower -t tune -l en"); #else - cerr << "cdec was not built with the --with-meteor option." << endl; + cerr << "cdec was not built with the -DMETEOR_JAR=/path/to/meteor.jar option." << endl; abort(); #endif } else if (metric_id.find("COMB:") == 0) { -- cgit v1.2.3