Skip to content

Make building the app and use of toml-f optional - #252

Open
jamesagreen wants to merge 2 commits into
dftd3:mainfrom
jamesagreen:make-toml-optional
Open

jamesagreen wants to merge 2 commits into
dftd3:mainfrom
jamesagreen:make-toml-optional

Conversation

@jamesagreen

Copy link
Copy Markdown
Contributor
  • Introduce a CMake variable SDFTD3_WITH_APP and meson option app which are default true, but can be set to false to disable the building of the app.
  • This means that the inclusion of toml-f as a dependency can be made optional.
  • This is done due to some compiler bugs (particularly older versions of NVHPC and intel classic compilers) in building the toml-f library.
  • Electronic structure codes which use s-dftd3 in library mode may not need the app, so this has the possibility to reduce compiler incompatibility problems for users that are stuck on particular compiler versions, due to e.g. restrictions in their HPC environment.
  • Closes Make use of toml-f and building app optional #250

- Introduce a CMake variable SDFTD3_WITH_APP which is default
true, but can be set to false to disable the building of the
app
- This means that the inclusion of toml-f as a dependency can be
made optional.
- This is done due to some compiler bugs (particularly older versions
of NVHPC and intel classic compilers) in building the toml-f library
@codecov

codecov Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 63.45%. Comparing base (84cb7cd) to head (4ac86c8).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #252      +/-   ##
==========================================
+ Coverage   63.35%   63.45%   +0.09%     
==========================================
  Files          47       47              
  Lines        6852     6832      -20     
  Branches     2435     2425      -10     
==========================================
- Hits         4341     4335       -6     
+ Misses       1197     1184      -13     
+ Partials     1314     1313       -1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

- It isn't strictly true that simply disabling the app
build in meson makes toml-f optional, because the
meson build uses the  json=auto option with mctc-lib,
which pulls in toml-f via the jonquil for reading JSON
- Tightened up the wording in the documentation
for meson regarding this.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make use of toml-f and building app optional

1 participant