Skip to content

Commit

Permalink
Make DFTD4 & multicharge dependencies optional (#1081)
Browse files Browse the repository at this point in the history
Signed-off-by: Ty Balduf <[email protected]>
  • Loading branch information
TyBalduf authored Aug 12, 2024
1 parent 5800488 commit a3d5c5e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions meson/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -216,13 +216,15 @@ lib_deps += tblite_dep
multicharge_dep = dependency(
'multicharge',
fallback: ['multicharge', 'multicharge_dep'],
required: get_option('tblite')
)
lib_deps += multicharge_dep

# Get DFTD dependency
dftd4_dep = dependency(
'dftd4',
fallback: ['dftd4', 'dftd4_dep'],
required: get_option('tblite')
)
lib_deps += dftd4_dep

Expand Down
16 changes: 16 additions & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,22 @@ option(
description: 'include CPCM-X library for solvation evaluation',
)

option(
'dftd4',
type: 'feature',
value: 'auto',
yield: true,
description: 'include DFTD4 library for D4 dispersion',
)

option(
'multicharge',
type: 'feature',
value: 'auto',
yield: true,
description: 'include multicharge library for atomic partial charges',
)

option(
'openmp',
type: 'boolean',
Expand Down

0 comments on commit a3d5c5e

Please sign in to comment.