FIXME: remove dependency mongodb. FIXME: use get_option() to dynamic depend on mongodb

This commit is contained in:
Alexander Couzens 2022-06-16 17:02:48 +02:00
parent 41894d8188
commit 3e63d41699
1 changed files with 2 additions and 5 deletions

View File

@ -25,9 +25,6 @@ libdbi_sources = files('''
session.c
ims.c
'''.split())
libmongoc_dep = dependency('libmongoc-1.0')
libdbi_inc = include_directories('.')
libdbi = library('ogsdbi',
@ -35,10 +32,10 @@ libdbi = library('ogsdbi',
version : libogslib_version,
c_args : '-DOGS_DBI_COMPILATION',
include_directories : [libdbi_inc, libinc],
dependencies : [libcrypt_dep, libmongoc_dep],
dependencies : [libcrypt_dep],
install : true)
libdbi_dep = declare_dependency(
link_with : libdbi,
include_directories : [libdbi_inc, libinc],
dependencies : [libcrypt_dep, libmongoc_dep])
dependencies : [libcrypt_dep])