Update fmt to version 3.0.0 and fix compatibility issues

Resolves #349.
This commit is contained in:
Ray Speth
2016-07-05 12:00:17 -04:00
parent f985169e93
commit 4e23793ebd
7 changed files with 10 additions and 5 deletions

View File

@@ -26,9 +26,12 @@ def prep_gtest(env):
def prep_fmt(env):
localenv = prep_default(env)
license_files.append(('fmtlib', 'fmt/LICENSE.rst'))
build(localenv.Command("#include/cantera/ext/format.h",
build(localenv.Command("#include/cantera/ext/fmt/format.h",
"#ext/fmt/fmt/format.h",
Copy('$TARGET', '$SOURCE')))
build(localenv.Command("#include/cantera/ext/fmt/ostream.h",
"#ext/fmt/fmt/ostream.h",
Copy('$TARGET', '$SOURCE')))
return localenv
# each element of libs is: (subdir, (file extensions), prepfunction)

Submodule ext/fmt updated: 4042198262...e5e4fb370c

View File

@@ -11,7 +11,7 @@
#include <exception>
#include <string>
#include "cantera/ext/format.h"
#include "cantera/ext/fmt/format.h"
namespace Cantera
{

View File

@@ -18,7 +18,7 @@
#define CT_GLOBAL_H
#include "ct_defs.h"
#include "cantera/ext/format.h"
#include "cantera/ext/fmt/format.h"
namespace Cantera
{

View File

@@ -8,7 +8,7 @@
#define CT_STRINGUTILS_H
#include "ct_defs.h"
#include "cantera/ext/format.h"
#include "cantera/ext/fmt/format.h"
#include <string>

View File

@@ -18,6 +18,7 @@
#include "cantera/kinetics.h"
#include "cantera/kinetics/ImplicitSurfChem.h"
#include "cantera/kinetics/solveSP.h"
#include "cantera/ext/fmt/ostream.h"
#include <cstdio>
#include <fstream>

View File

@@ -27,6 +27,7 @@ static void printUsage()
#include "cantera/kinetics.h"
#include "cantera/kinetics/ImplicitSurfChem.h"
#include "cantera/kinetics/solveSP.h"
#include "cantera/ext/fmt/ostream.h"
#include <cstdio>
#include <fstream>