Skip to content

Commit

Permalink
fix: specify backend
Browse files Browse the repository at this point in the history
  • Loading branch information
c-dilks committed Sep 28, 2024
1 parent ae05cdf commit f24e14b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/iguana/services/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ services_sources = [ 'Logger.cc', 'Object.cc', 'ConfigFileReader.cc', 'YAMLReade
services_headers = [ 'Logger.h', 'Object.h', 'ConfigFileReader.h', 'YAMLReader.h', 'ConcurrentParam.h', 'GlobalParam.h', 'RCDBReader.h' ]

if rcdb_dep.found()
add_project_arguments('-DUSE_RCDB', language: ['cpp'])
add_project_arguments('-DUSE_RCDB', '-DRCDB_SQLITE', language: ['cpp'])
endif

services_lib = shared_library(
Expand Down
8 changes: 8 additions & 0 deletions subprojects/rcdb/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ else
warning('RCDB not found; either use build option "rcdb:home" or set environment variable "$RCDB_HOME"')
endif

sqlite_dep = dependency('sqlite3', required: use_rcdb)
#
#
### clas12root consumes rcdb using mysql, NOT sqlite
#
#

rcdb_dep = not use_rcdb ? dependency('', required: false) : declare_dependency(
# RCDB lacks a public version number, use its prefix instead to at least
# inform the user which RCDB installation is used; alternatively, we could
Expand All @@ -34,4 +41,5 @@ rcdb_dep = not use_rcdb ? dependency('', required: false) : declare_dependency(
includedir,
is_system: true, # suppress consumer warnings
),
dependencies: [ sqlite_dep ],
)

0 comments on commit f24e14b

Please sign in to comment.