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

Remove option_if_available() #4112

Merged
merged 4 commits into from
Feb 11, 2021

Conversation

jngrad
Copy link
Member

@jngrad jngrad commented Feb 10, 2021

Make the CMake logic less brittle and more maintainable by removing the option_if_available() function. The user now needs to explicitly state which features or libraries have to be included in ESPResSo.

The feature is no longer necessary and leads to convoluted
conditional branches. It also causes confusing behavior: the
state of the options is persistent (re-running CMake without
first clearing the build directory leads to a different behavior
compared to running CMake in a fresh build directory), it's not
always clear what will be installed, and the CMake log contains
irrelevant messages about libraries not found for features that
were not selected by the user.

This reverts commit 4f280f6.
@jngrad jngrad added the CMake label Feb 10, 2021
@jngrad jngrad marked this pull request as ready for review February 10, 2021 18:02
@jngrad jngrad added this to the Espresso 4.2 milestone Feb 10, 2021
KaiSzuttor
KaiSzuttor previously approved these changes Feb 11, 2021
CMakeLists.txt Show resolved Hide resolved
@KaiSzuttor
Copy link
Member

thanks!

@jngrad jngrad added the automerge Merge with kodiak label Feb 11, 2021
@kodiakhq kodiakhq bot merged commit e7b2121 into espressomd:python Feb 11, 2021
@jngrad jngrad deleted the remove_option_if_available branch February 11, 2021 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Merge with kodiak CMake
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants