Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build system: fail when explicitly requested optional dependencies are not found #3735

Merged
merged 2 commits into from
May 27, 2020

Conversation

jngrad
Copy link
Member

@jngrad jngrad commented May 27, 2020

Follow-up to #3656

Provide meaningful error messages when optional dependencies (HDF5, GSL, ScaFaCoS) are specifically requested by the user with -DWITH_FEATURE=ON but not found on the system.

Generate an error when an explicitly requested optional dependency
is not found instead of silently carrying on. This is achieved by
creating a wrapper around the `option()` function to check whether
the user explicitly passed a CMake flag `-DWITH_FEATURE=ON`.
@jngrad jngrad added this to the Espresso 4.2 milestone May 27, 2020
@jngrad jngrad requested a review from fweik May 27, 2020 13:07
fweik
fweik previously approved these changes May 27, 2020
@codecov
Copy link

codecov bot commented May 27, 2020

Codecov Report

Merging #3735 into python will decrease coverage by 0%.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           python   #3735   +/-   ##
======================================
- Coverage      89%     89%   -1%     
======================================
  Files         548     548           
  Lines       24455   24431   -24     
======================================
- Hits        21779   21756   -23     
+ Misses       2676    2675    -1     
Impacted Files Coverage Δ
src/core/thermostat.hpp 89% <0%> (-2%) ⬇️
src/core/integrators/brownian_inline.hpp 90% <0%> (-1%) ⬇️
src/core/particle_data.cpp 96% <0%> (-1%) ⬇️
src/core/constraints/ShapeBasedConstraint.cpp 88% <0%> (-1%) ⬇️
src/core/forces_inline.hpp 90% <0%> (-1%) ⬇️
src/core/forces.cpp 100% <0%> (ø)
src/core/Particle.hpp 100% <0%> (ø)
src/core/integrators/langevin_inline.hpp 100% <0%> (ø)
src/core/unit_tests/thermostats_test.cpp 100% <0%> (ø)
src/core/constraints/HomogeneousMagneticField.cpp 100% <0%> (ø)
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 480bc34...011d4c6. Read the comment docs.

mkuron
mkuron previously approved these changes May 27, 2020
@jngrad jngrad dismissed stale reviews from mkuron and fweik via 011d4c6 May 27, 2020 13:30
@jngrad jngrad requested a review from fweik May 27, 2020 14:19
@jngrad jngrad added the automerge Merge with kodiak label May 27, 2020
@jngrad jngrad requested a review from RudolfWeeber May 27, 2020 14:51
@kodiakhq kodiakhq bot merged commit 0b7394a into espressomd:python May 27, 2020
@jngrad jngrad deleted the cmake_optional_deps branch January 18, 2022 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants