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

CMakeLists.txt use ON vs yes, indent #2663

Merged
merged 2 commits into from
Jun 7, 2023
Merged

CMakeLists.txt use ON vs yes, indent #2663

merged 2 commits into from
Jun 7, 2023

Conversation

poelmanc
Copy link
Contributor

In CMake logically ON, YES, TRUE, 1 are equivalent. But many CMake editors won't syntax highlight a lower-case "yes", and CMake-gui will change OPTION or CACHE BOOL values to ON, creating unnecessary changes to CMakeCache.txt. Also indent an MSVC if/then block.

In CMake logically ON, YES, TRUE, 1 are equivalent. But many CMake editors won't syntax highlight a lower-case "yes", and CMake-gui will change them to ON, creating unnecessary changes to CMakeCache.txt. Also indent a WIN32 if/then block.
@CLAassistant
Copy link

CLAassistant commented Mar 20, 2023

CLA assistant check
All committers have signed the CLA.

@WardF
Copy link
Member

WardF commented Mar 20, 2023

Thanks for the contribution, this is helpful! I'll merge after the CI runs.

@WardF WardF added this to the 4.9.3 milestone Jun 6, 2023
@WardF WardF merged commit a082acc into Unidata:main Jun 7, 2023
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.

3 participants