Skip to content

Commit

Permalink
work from SQLITECPP environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
markito3 committed Jan 22, 2018
1 parent fc5ea7e commit 997c5b1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/SBMS/sbms.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,13 @@ def AddCCDB(env):
# SQLite
##################################
def AddSQLite(env):
sqlitecpp_home = os.getenv('SQLITECPP_HOME')
env.Append(CPPDEFINES='SQLITE_USE_LEGACY_STRUCT=ON')
SQLITECPP_CPPPATH = ["%s/include" % (sqlitecpp_home)]
env.AppendUnique(CPPPATH = SQLITECPP_CPPPATH)
SQLITECPP_LIBPATH = ["%s/lib" % (sqlitecpp_home)]
env.AppendUnique(LIBPATH = SQLITECPP_LIBPATH)
env.AppendUnique(LIBS = 'SQLiteCpp')
AddSQLite.SQLITE_LINKFLAGS= "-lsqlite3"
AddLinkFlags(env, AddSQLite.SQLITE_LINKFLAGS)

Expand All @@ -656,10 +663,6 @@ def AddRCDB(env):

# add SQlite
env.Append(CPPDEFINES='RCDB_SQLITE')
env.Append(CPPDEFINES='SQLITE_USE_LEGACY_STRUCT=ON')
env.AppendUnique(CPPPATH = '/home/marki/Desktop/SQLiteCpp/include')
env.AppendUnique(LIBPATH = '/home/marki/Desktop/SQLiteCpp/build')
env.AppendUnique(LIBS = 'SQLiteCpp')
AddSQLite(env)

##################################
Expand Down

0 comments on commit 997c5b1

Please sign in to comment.