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

Improve clarity of -Dwith-python error message #2485

Merged
merged 1 commit into from
Oct 24, 2022
Merged

Conversation

Helveg
Copy link
Contributor

@Helveg Helveg commented Sep 30, 2022

The legacy forms of Dwith-python=2/3 still circulate. If a user now specifies -Dwith-python=3 they are met with the message Invalid option: -Dwith-python=3. This message implies that the option -Dwith-python is invalid and unrecognized by CMake. I changed the error message to clarify that the option is valid, but the given value is invalid, and ON or OFF should be given instead.

The legacy forms of `Dwith-python=2/3` still circulate. If a user now specifies `-Dwith-python=3` they are met with the message `Invalid option: -Dwith-python=3`. This message implies that the option `-Dwith-python` is invalid and unrecognized by CMake. I changed the error message to clarify that the given value is invalid, and `ON` or `OFF` should be given instead.
@hakonsbm hakonsbm added S: Normal Handle this with default priority T: Maintenance Work to keep up the quality of the code and documentation. I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) labels Oct 14, 2022
@hakonsbm hakonsbm added this to To do in Installation via automation Oct 14, 2022
Copy link
Contributor

@hakonsbm hakonsbm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jougs jougs self-requested a review October 24, 2022 11:43
@jougs jougs merged commit ec28759 into nest:master Oct 24, 2022
Installation automation moved this from To do to Done Oct 24, 2022
@jougs jougs changed the title Improved clarity of Dwith-python error Improve clarity of -Dwith-python error message Oct 24, 2022
@Helveg Helveg deleted the patch-3 branch October 24, 2022 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) S: Normal Handle this with default priority T: Maintenance Work to keep up the quality of the code and documentation.
Projects
Installation
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants