Specify which VM model to enable via an = option#117
Conversation
Instead of employing `-DARGO_VM_???` options for VM management (and have complicated code to check that exactly one of them is enabled). Besides simplifying the code, this will enable testing all options more easily on GitHub actions. For the moment, the same default has been kept, but it will need to be revised when #110 is appropriately fixed.
|
No strong objection. untested: something like this could be used to restrict the string to valid/expected values. |
What does this comment mean? That you only have a weak objection? If so, it is better to explicitly state it than having us guess what this objection might be. Note that the code in the PR checks for two of the values (currently Regarding:
IMO, this is an orthogonal issue and something that we can discuss more generally than just in the context of selecting an $ cmake -DARGO_BACKEND_MPI=YES_PLEASE -DBUILD_DOCUMENTATION=ALL_OF_IT ../Why should the |
|
I agree that it would be good to either:
This concerns all options and could be a separate PR. |
I think the first three lines of David's suggestion is an elegant solution regardless of validating input (following three lines), as this will present itself as a multiple choice when using Here are a few additional examples: |
Adopted. But two lines suffice for this. |
Instead of employing
-DARGO_VM_???options for VM management(and have complicated code to check that exactly one of them is enabled).
Besides simplifying the code, this will enable testing all options more
easily on GitHub actions.
For the moment, the same default has been kept, but it will need to be
revised when #110 is appropriately fixed.