Move config.h out of the main directory
This commit is contained in:
parent
9ce489efc6
commit
ccaf3f5e08
8 changed files with 12 additions and 12 deletions
|
|
@ -13,7 +13,7 @@
|
|||
#ifdef CANTERA_USE_INTERNAL
|
||||
#include "config.h"
|
||||
#else
|
||||
#include "cantera/config.h"
|
||||
#include "cantera/kernel/config.h"
|
||||
#endif
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
#ifdef CANTERA_USE_INTERNAL
|
||||
#include "config.h"
|
||||
#else
|
||||
#include "cantera/config.h"
|
||||
#include "cantera/kernel/config.h"
|
||||
#endif
|
||||
|
||||
extern "C" {
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
#ifdef CANTERA_USE_INTERNAL
|
||||
#include "config.h"
|
||||
#else
|
||||
#include "cantera/config.h"
|
||||
#include "cantera/kernel/config.h"
|
||||
#endif
|
||||
|
||||
extern "C" {
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
#ifdef CANTERA_USE_INTERNAL
|
||||
#include "config.h"
|
||||
#else
|
||||
#include "cantera/config.h"
|
||||
#include "cantera/kernel/config.h"
|
||||
#endif
|
||||
|
||||
extern "C" {
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
#pragma warning(disable:4503)
|
||||
#endif
|
||||
|
||||
#include "cantera/config.h"
|
||||
#include "cantera/kernel/config.h"
|
||||
|
||||
#include "Python.h"
|
||||
|
||||
|
|
|
|||
0
config.h.in.scons → Cantera/src/base/config.h.in
Executable file → Normal file
0
config.h.in.scons → Cantera/src/base/config.h.in
Executable file → Normal file
12
SConstruct
12
SConstruct
|
|
@ -668,7 +668,9 @@ if not env['HAS_MATH_H_ERF']:
|
|||
else:
|
||||
configh['USE_BOOST_MATH'] = None
|
||||
|
||||
config_h = env.Command('config.h', 'config.h.in.scons', ConfigBuilder(configh))
|
||||
config_h = env.Command('build/include/cantera/kernel/config.h',
|
||||
'Cantera/src/base/config.h.in',
|
||||
ConfigBuilder(configh))
|
||||
env.AlwaysBuild(config_h)
|
||||
|
||||
# *********************
|
||||
|
|
@ -682,8 +684,7 @@ demoTargets = []
|
|||
|
||||
env.SConsignFile()
|
||||
|
||||
env.Append(CPPPATH=[Dir(os.getcwd()),
|
||||
Dir('build/include/cantera/kernel'),
|
||||
env.Append(CPPPATH=[Dir('build/include/cantera/kernel'),
|
||||
Dir('build/include/cantera'),
|
||||
Dir('build/include')],
|
||||
LIBPATH=[Dir('build/lib')],
|
||||
|
|
@ -725,9 +726,8 @@ else:
|
|||
|
||||
env['cantera_libs'] = linkLibs
|
||||
|
||||
configh = env.Command('build/include/cantera/config.h', 'config.h', Copy('$TARGET', '$SOURCE'))
|
||||
inst = env.Install('$ct_incdir', configh)
|
||||
installTargets.extend(inst)
|
||||
#inst = env.Install('$ct_incdir/kernel', 'build/include/cantera/kernel/config.h')
|
||||
#installTargets.extend(inst)
|
||||
|
||||
# Add targets from the SConscript files in the various subdirectories
|
||||
Export('env', 'buildDir', 'buildTargets', 'installTargets', 'demoTargets')
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
#include <math.h>
|
||||
#include <float.h>
|
||||
#include <limits.h>
|
||||
#include "../../config.h"
|
||||
#include "kernel/config.h"
|
||||
#ifndef WINMSVC
|
||||
#include <unistd.h>
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue