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

Fix some warnings in cmake #2940

Merged
merged 1 commit into from
Jun 26, 2024
Merged

Fix some warnings in cmake #2940

merged 1 commit into from
Jun 26, 2024

Conversation

DennisHeimbigner
Copy link
Collaborator

@DennisHeimbigner DennisHeimbigner commented Jun 26, 2024

re: Issue #2939

The problem occurs when managing inter-dependent options.
I was testing for certain dependencies of the form not x => not y where x and y are options.
This should be encoded in CMakeLists.txt as follows:

if( not x and y)
message(warning "not x => not y")
endif()

However in a couple of cases (including the referenced Issue), I was only testing this:

if( not x)
message(warning "not x => not y")
endif()

Fix is to correct the tests.

re: Issue Unidata#2939

The problem managing inter-dependent options.
I was looking for certain cases of the form, where x and y are options.
````
if( not x and y)
message(warning "not x => not y)
endif
````
However in a couple of cases (including the referenced Issue), I was only testing this:
````
if( not x)
message(warning "not x => not y)
endif
````

Fix is to correct the tests.
@WardF WardF merged commit bfee002 into Unidata:main Jun 26, 2024
106 checks passed
@DennisHeimbigner DennisHeimbigner deleted the zwarn.dmh branch June 26, 2024 21:19
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.

Unable to avoid NCZARR-related warning (low priority -- annoyance only)
2 participants